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?
hey Robert,
i am not sure what could be wrong. are you getting any errors? also could you change $.parseJSON(result.d) to just result.d, or simply "result" (without the quotes). I am not familiar with your grid configuration (which options are set, etc.) to be able to give you more details about it.
Hope it helps. Thanks,
Hello Angel.
it is strange. When I started from scratch to create a example application that exhibits the bad behavior, I can clearly see that recreating the grid in this way is possible and works. The only difference I can see between the example app which I sent to support and the code I pasted above is the quantity of data. There are no errors with the parsing of the json. Debugging tells me that the JSON array is good. The igGrid simply does not update using the code I pasted above. I'll let you know if I find the reason. Thanks for the feedback.
Robert
do you have any updates on this? Is there anything i can help with if you still experience this issue?
I sent an example application to support. Is there any way I can send it to you?
Thanks Angel
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
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. :(