This is a migrated thread and some comments may be shown as answers.

On tab click I want to change visibility of columns

1 Answer 25 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
KawaUser
Top achievements
Rank 2
KawaUser asked on 08 Sep 2011, 07:46 PM
The title is pretty self explanatory. I need to change the columns that show in a grid inside a user control when a user changes tabs. Can someone help me please

Thanks,
Chuck

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 13 Sep 2011, 03:31 PM
Hello Kawauser,

In case you are using auto generated columns then you could use the following implementation of the TabClick event handler function:
TryCast(UserControl1.FindControl("RadGrid1"), RadGrid).MasterTableView.AutoGeneratedColumns(0).Visible = False

You should reference the appropriate user control containing the grid and then reference the grid using the FindControl method.

Greetings,
Dimitar Terziev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TabStrip
Asked by
KawaUser
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
Share this question
or