I have a test igHierarchicalGrid of two levels, initially it is populated in the view like this:
@(Html.Infragistics().Grid(Model.AsQueryable())....
The grid is working perfectly. I want to simulate an update to this grid so I make a call to GetNewData() action in the controller and return a Json with new data. In the client I rebind to this new data but nothing change in the grid. Look at the sample I have attached.
How to rebind this new json data to the grid?
Hi Luis,
This forum thread that you asked about was handled by my colleague Michael Harrington and he will assist you for it.
If you have any other questions related to the topic in the current forum thread, please let me know.
Sincerely,
Tsanna
Well, maybe this new issue
http://ko.infragistics.com/community/forums/p/94768/468446.aspx#468446
Thanks ;)
Hello Luis,
Can I help you with anything else?
Regards,
Thanks a lot Tsanna!! It works beautifuly! You saved me a lot of extra work ;)
Please change the last two lines of code in 'rebindNewData' function to be as following:
function rebindNewData(data) {
... $("#MyGrid").igHierarchicalGrid('option', 'dataSource', newCategories); $("#MyGrid").igHierarchicalGrid("dataBind"); }
I'm attaching the whole project for your reference.