I have a WebDataGrid, a multiselect WebDropDown above it and an "Apply" button.
All are placed in one UpdatePanel.
The WebDropDown is populated with the columns of the WebDataGrid and the user can check the multiselect ceckboxes of the WebDropDown to choose which columns of the WebDataGrid should be displayed or hidden.
The "Apply" button's OnClick server-side event then applies the columns selection from the WebDropDown to the WebDataGrid by setting each WebDataGrid's column's Hidden property. The UpdatePanel makes the OnClick call an async postback.
THE PROBLEM IS: The WebDataGrid's columns are not being redrawn on the client after the async postback. Columns that actually have their Hidden property really set to true are still being displayed and vice versa. However, if I change some column's Header Text in the same "Apply" button's OnClick event, it does redraw the text of the column's header on the client, which means the whole WebDataGrid actually was redrawn but did not apply the Hidden properties...
Is this a WebDataGrid's bug, design feature or am I doing something wrong?
The WebDataGrid has the following behaviors enabled: Column Moving, Column Resizing, Editing Core with Cell Editing, Row Selectors, Selection.
I also tried it with WebDataGrid.EnableAjax true and false, nothing helped.
Hi,
I tried this with version 9.2.20092.2061 and it worked for me. It also worked on the latest internal 10.1 build. If you have an older version of 9.2, I suggest upgrading to the latest Service Release. If you still have problems with that, try it without the Update Panel and attach a sample here.
regards,
David Young
The version that I use is Infragistics35.WebUI.UltraWebGrid.v9.2, Version=9.2.20092.1003
Infragistics35.WebUI.UltraWebGrid.v9.2, Version=9.2.20092.1003
I could not find the version that you mention - 9.2.20092.2061 - on the Infragistics.com website.
Is it published yet?
(IG website says that some service release is planned for April 5.)
thx & best regards
Hey,
You are correct. Apparently 2061 is an internal build. 9.2.20092.2056 is the latest Service Release (from February) and we have another planned for April. Could you check if this issue persists in the latest SR by upgrading to build 2056. If it is still broken there, we'll either have to wait for April 5 or you can contact Developer Support and request an escalation.
Dave
I have 10.2.20102.1011 and am experiencing this same issue. I have a column set to hidden but after binding data to the grid through an AJAX call the column still shows up.
Hi JCoover,
You're running the WebDataGrid or WebHierarchicalDataGrid? Is the ajax call from the grid or external? One thing you could try is upgrading to the latest 10.2 Service Release to see if the issue still persists.
regards,David Young