Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
UPDATE A LABEL WHEN USING ULTRAWEBGRID WITH LOADONDEMAND=XML
posted

Hi,

I have a ultrawebgrid, which is set as 

ContractsGrid.Browser = BrowserLevel.Xml;
ContractsGrid.DisplayLayout.LoadOnDemand = LoadOnDemand.Xml;

for paging large number of rows.

My requirement is that when user changes the values in a row,

1.the changes are  saved to the database from the OnRowUpdate event on serverside. This works fine.

2.Display a label message saying the update was successful. Even though I update the label.Text inside the RowUpdate Event, it does not reflect on the front end. I believe this is because of the ajax callback within the grid, that is not really doing a complete postback.

If I change the loadondemand to NotSet, then it shows the label, but the grid load becomes extremely slow.

How I can update the label text, keeping the LoadOnDemand as xml itself?

I tried wrapping everything in WebAsyncRefreshPanel, leaving the LoadOnDemand as is, but it still did not help.

Please let me know soon what is a solution for this.

Parents
  • 16310
    Offline posted

    Hi Rajani,

    Your observations are completely right - the ajax callback does not update any content outside of the grid. To resolve the issue I suggest placing the grid and the label inside an UpdatePanel.

    Let me also note that old versions containing the UltraWebGrid are no longer supported and we will not be able to help with further issues. I suggest that you consider upgrading your application to newer versions. More information on our product lifecycle policy can be found at http://ko.infragistics.com/support/product-lifecycle

Reply Children