On tab click I want to change visibility of columns

2 posts, 0 answers
  1. KawaUser
    KawaUser avatar
    57 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

    Thanks,
    Chuck
  2. Dimitar Terziev
    Admin
    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.

    Greetings,
    Dimitar Terziev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top