Hi,
I'm using 2019.3.1023 version. I have a treelist which retrieving data from remote source. When user select a time range in a list the treelist will be triggered to re-fetch the data with the new selected parameter. The datasource is updated succussfully and treelist is refreshed. But the pager is not updated accordingly.
The treelist configuration:
$('#gridtable').kendoTreeList({ autoBind: false, dataSource: { transport: { read: { url: top.$.rootUrl + '/PPM_Contract/Contract/GetList', dataType: "json", data: function () { return { queryJson: JSON.stringify({ // parameters send to remote source }) }; } } }, schema: { data: "data", total: function (response) { return response.data.length; }, model: { id: "F_Id", parentId: "externalId", expanded: true, fields: { // some fields setting } } } }, filterable: true, sortable: true, resizable: true, selectable: true, pageable: { pageSize: 100 }, dataBound: function (e) { // some logic for styles }, columns:[ // some columns ] });
The trigger of refreshing the treelist:
// some parameter assignment// then call read method on datasource$("#gridtable").data("kendoTreeList").dataSource.read();
With first selection of the parameter, 124 items are returned and 2 pages initialized, which is correct (attached as 1stTry.png).
With second selection, 248 items returned, total number is updated but the pager is not (should be 3 pages but stays as 2. Attached as 2ndTry.png).
How to refresh the pager with datasource?
Thanks.