Thanks for the fix of the sortBy attribute. It's fixed with the latest nightly (SmartClient_v100p_2015-04-10_Pro).
I found another issue while sorting the displayed fields. If you click on the header of a field the rows should be sorted. But they are only sorted after the second click. Maybe this is behaviour is on purpose if the sortfield is not specified at initialization, but in the listgrid this is already working. The sorting works correct after the second click.
This happens with latest versions of chrome and firefox and the latest nightly (SmartClient_v100p_2015-04-10_Pro).
This is reproducable with this code:
The hover-bug seems to only happen in chrome with the latest build (reproduced with Version 41.0.2272.118 m). The blue selection jumps to the first treenode if you haven't had any selection and you're clicking on [+] symbol. This is also reproducable with the code shown above (in chrome browser)
Thanks and best regards
I found another issue while sorting the displayed fields. If you click on the header of a field the rows should be sorted. But they are only sorted after the second click. Maybe this is behaviour is on purpose if the sortfield is not specified at initialization, but in the listgrid this is already working. The sorting works correct after the second click.
This happens with latest versions of chrome and firefox and the latest nightly (SmartClient_v100p_2015-04-10_Pro).
This is reproducable with this code:
Code:
isc.TreeGrid.create({ "ID" : "theTreeGrid", "width" : "100%", "height" : "100%", "selectionType" : "multiple", "canEdit" : false, "showFilterEditor" : false, dataSource : isc.DataSource.create({ "fields" : [{ "name" : "treeGridGeneratedIndex", "primaryKey" : true, "hidden" : true, "canView" : false }, { "name" : "nameField", "title" : "Reason", "type" : "text" }, { "name" : "parentId", "rootValue" : "2531", "foreignKey" : "treeGridGeneratedIndex", "hidden" : true } ], "dataFormat" : "json", "dataURL" : "http://devset.de/treegrid.php", "transformRequest" : requestTransformer, "transformResponse" : responseTransformer, "recordXPath" : "\/resultData", useHttpProxy : false }), dataProperties : { openProperty : "isOpen", childrenProperty : "children" }, "autoFetchData" : true, "dataPageSize" : 20, "dataFetchMode" : "paged", "selectionProperty" : "isSelected", "fields" : [{ "name" : "nameField", "title" : "Reason", "type" : "text", "canEdit" : true, "canSort" : true }, { "name" : "lastField", "title" : "Name", "type" : "text", "canEdit" : true, "canSort" : true } ], "selectionProperty" : "isSelected", "members" : [] }); function requestTransformer(dataSourceRequest) { var operationType = { operationType : dataSourceRequest.operationType }; if (dataSourceRequest.operationType == "fetch") { var params = { sortBy : dataSourceRequest.sortBy, start : dataSourceRequest.startRow, end : dataSourceRequest.endRow }; } return isc.addProperties({}, operationType, dataSourceRequest.data, params); } function responseTransformer(dataSourceResponse, dataSourceRequest, jsonData) { if (dataSourceRequest.operationType == "fetch") { dataSourceResponse.totalRows = jsonData.totalRows; dataSourceResponse.endRow = jsonData.endRow; dataSourceResponse.startRow = jsonData.startRow; }; }
Thanks and best regards
Comment