On tab click I want to change visibility of columns

2 posts, 0 answers
  1. KawaUser
    KawaUser avatar
    59 posts
    Member since:
    Oct 2010

    Posted 08 Sep 2011 Link to this post

    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

  2. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 13 Sep 2011 Link to this post

    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.

    Dimitar Terziev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top