Hi,
I am having trouble figuring out how to get the data source to re-read its data. This is in context of a grid being bound to the data source.
I can set a new filter on the the data source and it will re-get, issue a change event which updates the grid. But filters seems to be limited to the columns in the data source.
In my situation I need to change a transport.data parameter (I am also using parameterMap) for the new data.
I tried:
mygrid.dataSource.transport.read({ data: { some_param: "some_data" }});
In this case "some_param" shows up in parameterMap and I can pass it on as a parameter. The dataSource then re-gets again but does not issue a change event, so the grid is not updated.
I was expecting to be able to change transport options and then do something like dataSource.Refresh() which in turn would re-get and trigger the change event.
OR provide some custom data in a filter that is related to the columns in the data.
Another way to put is allow client filtering, but go to the server if the filter column does not exist locally.
Any ideas?
I am having trouble figuring out how to get the data source to re-read its data. This is in context of a grid being bound to the data source.
I can set a new filter on the the data source and it will re-get, issue a change event which updates the grid. But filters seems to be limited to the columns in the data source.
In my situation I need to change a transport.data parameter (I am also using parameterMap) for the new data.
I tried:
mygrid.dataSource.transport.read({ data: { some_param: "some_data" }});
In this case "some_param" shows up in parameterMap and I can pass it on as a parameter. The dataSource then re-gets again but does not issue a change event, so the grid is not updated.
I was expecting to be able to change transport options and then do something like dataSource.Refresh() which in turn would re-get and trigger the change event.
OR provide some custom data in a filter that is related to the columns in the data.
Another way to put is allow client filtering, but go to the server if the filter column does not exist locally.
Any ideas?