This question is locked. New answers and comments are not allowed.
Hi,
I've created a Grid will works and performs as expected when loaded using Ajax Server Operation Mode, however when changing the mode to Client, the data that is requested from the server is not displayed.
The Ajax call is made and the data is returned from the server just like with Server Operation Mode, there are no JavaScript errors highlight by Firebug etc. I was wondering if other's have experienced this. I've been unable to determine why this might happen, I tried to fault check, including removing all other scripts that run on the page, minimal grid options etc.
The data is displayed at time of render is the data is supplied to the grid initially, however firing client events from then on results in 'no records found'.
Currently using Q2 release with Jquery 1.5.1 (contained within the release).
If anybody's got any ideas it would be most appreciated.
Thanks,
UPDATE - I have found that the data that is loaded via ajax can be access through
var data = $('#NAME').data('tGrid').dataSource._data
I can then force the grid to repopulate using $('#NAME').data('tGrid')._populate(data)
However this needs to be called on every databind. This leads me to think that there is a data binding / repainting problem, or that _populate is not being called for some reason, or that the change is data (i.e. the ajax request is completed with the data returned) goes unnoticed (I think this may be the key)
I've created a Grid will works and performs as expected when loaded using Ajax Server Operation Mode, however when changing the mode to Client, the data that is requested from the server is not displayed.
The Ajax call is made and the data is returned from the server just like with Server Operation Mode, there are no JavaScript errors highlight by Firebug etc. I was wondering if other's have experienced this. I've been unable to determine why this might happen, I tried to fault check, including removing all other scripts that run on the page, minimal grid options etc.
The data is displayed at time of render is the data is supplied to the grid initially, however firing client events from then on results in 'no records found'.
Currently using Q2 release with Jquery 1.5.1 (contained within the release).
If anybody's got any ideas it would be most appreciated.
Thanks,
UPDATE - I have found that the data that is loaded via ajax can be access through
var data = $('#NAME').data('tGrid').dataSource._data
I can then force the grid to repopulate using $('#NAME').data('tGrid')._populate(data)
However this needs to be called on every databind. This leads me to think that there is a data binding / repainting problem, or that _populate is not being called for some reason, or that the change is data (i.e. the ajax request is completed with the data returned) goes unnoticed (I think this may be the key)