Enable disable RadGrid columns depending of selected tab

3 posts, 0 answers
  1. Herve
    Herve avatar
    39 posts
    Member since:
    Jun 2008

    Posted 03 Aug 2008 Link to this post


    I want to hide columns in a RadGrid when the selected tab of a TaStrip, in another area of the page isn't the first (based on your wizzard code demo).

    I have configured the ajax manager to do it, enabled the post back on the tabstrip and added the following event:


    Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles RadTabStrip1.TabClick

    If RadTabStrip1.SelectedTab.Text = "Compte Client" Then


    "Delete").Visible = True
    RadGrid1.MasterTableView.GetColumn("Edit").Visible = True



    "Delete").Visible = False
    RadGrid1.MasterTableView.GetColumn("Edit").Visible = False

    End If

    End Sub

    This code works at half in the sense of my column are not visible after any click on any tab (on the first "compte client" too) but they never come back Visible.

    I also would like to know how I can modify this when I click on the "next" button of the wizzard example because only an user control is loaded in that case.

    Thank you for your help,


  2. Paul
    Paul avatar
    4281 posts

    Posted 07 Aug 2008 Link to this post

    Hello Herve,

    I'm afraid we cannot fully understand your exact question/scenario. I think it will be best if you can open a support ticket and send us a simple running project (incl. CSS, images, skins, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

    Thanks beforehand for your patience and cooperation,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. shanker bangari
    shanker bangari avatar
    106 posts
    Member since:
    Jan 2010

    Posted 03 Jan 2010 Link to this post

    hi  i want full code of this requirement 
Back to Top