Could I get some code examples of how to keep what rows are expanded and collapse in an UltraWebGrid after a postback? My grid is grouped by a column and is initially collapsed on load, buth then the users expand. After updating a record using a rowedittemplate, the grid is reloaded, but loses what rows are expanded and collapsed. I'd like to reload the grid then put it back the way it was before the postback.
Hello Will Larkin ,
I tried to reproduce your issue but was unable to. By default the grid will maintain its state if the EnableViewState is set to true.
Please refer to the attached sample and let me know if you notice any major differences. It would be also very helpful if you could modify this sample so that it reproduces your issue or alternatively provide me the code-snippets with the relevant code (mark-up for the grid) so that I can try and replicate the issue.
Thank you for your cooperation.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Thanks Maya! I believe my issue is because I'm databinding again on row update on the server side and that's refreshing the grid. If I comment out the databind in the UpdateRow event then the grid state persists, but I have to rebind because after a row is completely updated it needs to be removed from the grid. I'm going to look into maybe trying to remove the row on the client side, so I don't have to rebind and the row won't show up. I attached my files of the screenshot in my first post in case you have any ideas.