Trying to use "dataFetchMode: paged" in TreeGrid results in multiple calls for the data. With the example below you can reproduce this behaviour and check that there are 4 requests where it should only be one to get the first data. In the resuet to the datasource the parentId is not set either in our application nor in the example. Do we have to set the parentId by ourself in the initial request?
We using the latest nightly SmartClient_v100p_2014-11-26_Pro and it happens with all browsers.
We using the latest nightly SmartClient_v100p_2014-11-26_Pro and it happens with all browsers.
Code:
isc.VLayout.create( { "width":"100%", "height":"100%", "autoDraw":true, "members": [ isc.TreeGrid.create( { "width":"100%", "height":"100%", "hideUsingDisplayNone":false, "leaveScrollbarGap":true, "selectionType":"single", "canEdit":false, "timeFormatter":"toShortTime", "sortField":"nil", "sortDirection":"ascending", "clwGeneratedIndexName":"nameTreeGridGeneratedIndex", dataSource : isc.DataSource.create({ "fields" : [{ "name" : "term", "type" : "text" } ], "dataFormat" : "json", "useHttpProxy" : false, "dataURL" : "http://www.corsproxy.com/www.openthesaurus.de/synonyme/search?q=aber&format=application/json", "recordXPath" : "/synsets[3]/terms" }), "autoFetchData":true, "dataPageSize":120, "dataFetchMode":"paged", "fields": [ { "name":"term", "title":"Name", "type":"text", } ] } ) ] } )
Comment