Is there a way to pro-grammatically refresh the data in the grid without loosing any of the filtering or sorting settings of the currently displayed data?
Basically I want to have a button that when clicked will refresh the data from the server without losing the filter and sort info. We need this because the data we are viewing changes on the back end without the user being aware.
Thanks,
Paul
Hi,
this isn't possible at the moment. When you rebind the grid programatically, the sorting and filtering presets , which are configured through the UI by an end user, are reset. It's a valid scenario, though, and I have reached to our Product Management for feedback.
Angel
Do you mean that it is not possible to bind the grid to a json array, then via ajax get a new json array and rebind the grid to the new json array?
your question was specifically about retaining the sorting and filtering presets. Otherwise it's possible to bind the grid locally, then refresh it via Ajax.
I'm not the original poster. But my question is the same. I am calling igGrid in the success callback of jQuery.ajax() method like this:
success: function(result) {
if ($grid) {
$grid.igGrid("dataSourceObject", $.parseJSON(result.d));
$grid.igGrid("databind");
} else {
$grid = $(
this).igGrid({... ... ...
}
The grid does not update with the new data. What might I be doing wrong?
Thanks.
Robert
Hi triffle,Correct me if I'm wrong, but I believe we're already discussing the same issue in another thread (How to bind igGrid to server side object.)If that is so, can you please keep all communication regarding this scenario in one thread?(it will be much better in terms of keeping track of how the discussion is processing and to assist you with the solution)Thank you,Borislav
I am starting to think I'm having the same problem refreshing as this guy. :(
When I try to do this same thing, I get the following error:
Cannot determine the data source type. Please specify if it is JSON or XML data
I sent an example application to support. Is there any way I can send it to you?
Thanks Angel
hey Robert,
do you have any updates on this? Is there anything i can help with if you still experience this issue?