I have an UltraWebGrid and an UpdatePanel (not surrounding the grid) on my page. The grid is set to LoadOnDemand="Xml", has some default sorting applied and is not part of the UpdatePanels partial update.
So, if i do some updates with the UpdatePanel everything works fine and the grid stays as it should without changing. But on the next full postback, when the grid is loaded again, the sorting of the grid has been lost.
Does anybody know to get around this problem?
MartinMosimann,
The first thing I notice is that you're combining the grid's AJAX functionality (LoadOnDemand="Xml") with ASP.NET AJAX Extensions (the UpdatePanel). These use two different AJAX frameworks that cannot be made compatible.
To resolve this, you have two options:
When the grid's AJAX functionality is enabled, a full postback causes much of the grid's settings to be reset. I don't believe that sort order is one of those things, though I haven't tested this recently. Test to see what happens when you take the UpdatePanel (or WARP) out of the picture entirely.