Oct 26, 2010, 8:33 AM
GridPanel Hide/Show Columns
Hi
In my MVC Application. I have to show or hide some grid panel columns based on button selection. Below mentioned piece of code i used. but it's not working. Still it showing hidden columns.
In button click event i used this method.
In my MVC Application. I have to show or hide some grid panel columns based on button selection. Below mentioned piece of code i used. but it's not working. Still it showing hidden columns.
In button click event i used this method.
<ext:Button ID="btnra" runat="server" Text="RA" ToolTip="Routine Analysis" Icon="BulletFeed">
<DirectEvents>
<Click OnEvent="RASettings">
<EventMask ShowMask="true" Msg="Loading" />
</Click>
</DirectEvents>
</ext:Button>
protected void RASettings(object sender, DirectEventArgs e)
{
this.grdMasterView.ColumnModel.SetHidden(2, true);
this.grdchildview.RefreshView();
}
Thanks in advance