We have the following environment:
· Windows XP
· Visual Studio 2008
· Microsoft Framework 3.5 SP1
· Infragistic NetAdvantage webClient asp.net 2008 vol 3 CLR 3.5
We have a website developed in ASP.net (C#) which contains a series of controls, including controls: UltraWebTree, UltraWebGrid. We need the following behavior:
When you select a tree node [UltraWebTree] the application must select and highlight a row in the grid [UltraWebGrid] automatically
UltraWebGrid control is included in an UpdatePanel because several events need to update the information on this. We need to know if UltraWebGrid supports 100% Ajax .NET Frameworok 3.5. Because doing some tests with a page that has not implemented Ajax the same code works fine, except on pages where we put the UltraWebGrid within an UpdatePanel.
The code we are using to highlight a particular row is:
this.uwg_gridClass2.DisplayLayout.ActiveRow = this.uwg_gridClass2.Rows[16];
this.uwg_gridClass2.DisplayLayout.Rows[16].Selected = true;
this.uwg_gridClass2.DisplayLayout.SelectedRows.Clear();
We need to know if the UltraWebGrid is fully compatible with the UpdatePanel. If that alternative is not offered, we must install a windows or infragistic service pack?
There are two possible causes for your issue, and these represent the two most common compatibility issues between WebGrid and UpdatePanel.
One possibility is that you may be using the built-in AJAX functionality of WebGrid. The grid's AJAX functionality is based on our own CallbackManager, while UpdatePanel is built atop of Microsoft's ASP.NET AJAX Extensions. The two technologies can't be nested one within the other, since they'll interfere with each other's functionality. There are two solutions; one is to turn off the grid's AJAX capabilities, and the other is to use WebAsyncRefreshPanel (WARP) instead of UpdatePanel.
The other possibility is related to styling. If you're styling using WebGrid's properties, as opposed to using Application Styling or CSS, the control will render CSS information to the page in the HEAD section. When this occurs during an AJAX callback (whehter through UpdatePanel or WARP), this CSS information can't be written to the HEAD section, and so you may see no styling change. The simplest solution is to use either Application Styling or CSS to style your WebGrid. The same would apply to most of our other ASP.NET controls.
How turn off the grid's AJAX capabilities...?
edgutol said:How turn off the grid's AJAX capabilities...?