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

Enable disable RadGrid columns depending of selected tab

2 Answers 173 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Herve
Top achievements
Rank 2
Herve asked on 04 Aug 2008, 01:56 AM
Hi,

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:

Protected

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

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

RadGrid1.MasterTableView.GetColumn(

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

Else

RadGrid1.MasterTableView.GetColumn(

"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,

Herve

2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 07 Aug 2008, 08:04 AM
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,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
shanker bangari
Top achievements
Rank 1
answered on 04 Jan 2010, 05:43 AM
hi  i want full code of this requirement 
Tags
TabStrip
Asked by
Herve
Top achievements
Rank 2
Answers by
Paul
Telerik team
shanker bangari
Top achievements
Rank 1
Share this question
or