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

Tabs invisible

1 Answer 68 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
gabriel
Top achievements
Rank 2
gabriel asked on 29 Oct 2008, 09:53 AM
Hello,

If you see some mistakes in my sentences, don't hesitate to tell me (i'm french).
So, I have 4 Tabs in a radtabstrip control in a ASP .NET page and i want to make the second and the third tabs in visible = false (in page_prerender). This operation cause the next problem : my 4th tabs is not clickable.
Someone have an idea to resolve this problem?
Thank you for your answers.

1 Answer, 1 is accepted

Sort by
0
gabriel
Top achievements
Rank 2
answered on 30 Oct 2008, 09:35 AM
I found a solution, i replaced this code :

RadTabStrip1.Tabs[1].Visible = true;
RadTabStrip1.Tabs[2].Visible = false;
RadTabStrip1.Tabs[3].Visible = false;
RadTabStrip1.Tabs[4].Visible = true;

Wich make problem because 2nd, 3rd and 4th tabs don't display the matching PageView when I click on.
By this code :

RadTabStrip1.Tabs[1].Enabled = true;
RadTabStrip1.Tabs[2].Enabled = false;
RadTabStrip1.Tabs[3].Enabled = false;
RadTabStrip1.Tabs[4].Enabled = true;
RadTabStrip1.Tabs[1].Attributes["style"] = "display: block;";
RadTabStrip1.Tabs[2].Attributes["style"] = "display: none;";
RadTabStrip1.Tabs[3].Attributes["style"] = "display: none;";
RadTabStrip1.Tabs[4].Attributes["style"] = "display: block;";

Bye
Tags
TabStrip
Asked by
gabriel
Top achievements
Rank 2
Answers by
gabriel
Top achievements
Rank 2
Share this question
or