Hello, We are using VB.NET, VS2010, with Infragistics version 11.1.20111.2036
We have a 2 level bound WHDG. When the page is first rendered, everything looks ok. Each of the Parent and Child Rows have some hidden columns. Using the WHDG's built in behavior for paging, when you click to go to the next page, the data is refreshed correctly but ALL of the Child Rows hidden columns are now visible. If you go back to the previous page they are also visible. I added code in "four places" to hide the columns programaticaly in order to try correct the issue.
Client Side BLOCKED SCRIPT Added code to the ContainerGrid_RowExpanding() event. I obtained the ChildGridView and from there .get_columns().get_column(hiddenColumnName).set_hidden(true);
Code Behind: _InitializeRow, _RowIslandDataBound, and one of my own method's to hide the columns.
Using ALL four methods did NOT correct the issuse. The columns hidden columns are visible after the first page. I will also note here that the grid 's .ExpandAll() method only works on entry to the page.
Any help would be greatly appreciated. Thanks.
Hello jdymond,
If you need further assistance on the matter, please feel free to contact me.
Hi jdymond,
It seems that this issue is fixed in later versions. I tested the scenario you have described with NetAdvantage 11.1.20111.2158 and the grid paging and column hiding is working correctly. So I would suggest you to upgrade to the latest service release. I am attaching a sample with v11.1.2158 demonstrating column hiding and a possible appcoach for displaying a parent row expanded.
If you have any further questions, please let me know.
Yes, I already have that exact code in a private method that gets called in the Page_Load. I actually call it twice. Once before I reset the WHDG DataSource (for paging) and after it has been set.
I also went a step further here and added code to hide the columns to a "5th" spot! _InitializeBand. Still nothing works...
Are you able to confirm this is NOT a bug in the Infragistics version we are using? Please refer to my initial post in order to recreate the issue.
As far as the InitialExpandDepth, I am setting that property already as well. The grid should stay expanded as you navigate to any page while paging.
Thanks.
I would suggest you to hide the columns you want in the Page_Load, using the following code:
protected void Page_Load(object sender, EventArgs e)
{
//Hides column "ColumnName" from the child band
WebHierarchicalDataGrid1.GridView.Band.Bands[0].Columns["ColumnName"].Hidden = true;
}
If you need the bands to be expanded, you could set the InitialExpandDepth property. You could also check the following threads regarding expanding rows - http://blogs.infragistics.com/forums/t/57700.aspx, http://forums.infragistics.com/forums/p/43972/240259.aspx.
Please let me know if this helps.