Hi, I've been doing battle with this for over a day now without success. Any geniuses out there with an idea?
I have a WebGrid inside an UpdatePanel (to make use of Ajax).
I have two buttons, the first disables the grid by setting DefaultLayout ...
table.DisplayLayout.ReadOnly = Infragistics.WebUI.UltraWebGrid.ReadOnly.LevelZero;
The second button enables the grid again using the following line...
table.DisplayLayout.ReadOnly = Infragistics.WebUI.UltraWebGrid.ReadOnly.NotSet;
My first problem - when I click the disable button, the grid does disable. Unfortunately, it doesn't stop at the grid. Nothing works on the form from that point on. Clicking buttons on the page has no effect - the events are not running. It seems that setting table.DisplayLayout.ReadOnly to Infragistics.WebUI.UltraWebGrid.ReadOnly.LevelZero totally wipes all the client-side script on the form. If I remove the UpdatePanel from the form it does work as expected, but this isn't an option unfortunately.
I've tried other approaches such as enabling / disabling the grid client-side. For example, I tried the following script...
{
oGrid.Element.disabled = true;
}
This doesn't seem to work either, complaining that the Element object of oGrid is null.
I'm totally lost. Is there a known limitation with using Grids inside Ajax UpdatePanels?
I'm using the following version of the grid...
<%@ Register TagPrefix="igtbl" Namespace="Infragistics.WebUI.UltraWebGrid" Assembly="Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.1061, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
Anyone with any ideas would be ENOURMOUSLY appreciated.
Hello,
I am trying to reproduce the issue, unfortunately to no avail. I am not completely sure at what version we provided support for asp:UpdatePanel -- you may contact Developer Support at the following link for additoinal details. http://es.infragistics.com/support/
You can also try using our own WebAsyncRefreshPanel control which we developer prior to UpdatePanel and which does pretty much the same -- you may get better results this way.
Hope this helps.
Thanks for the responses - I will try all suggestions. Ivan, if you do try to replicate again the following info might be relevent ...
The button controls must also be inside the UpdatePanel. If they are outside the panel it works.
I'm running Visual Studio 2005 and Dot Net 2.0
Thanks again