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

Getting a tab selected on page load

1 Answer 112 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Regeesh Joseph
Top achievements
Rank 1
Regeesh Joseph asked on 04 Aug 2010, 07:32 AM
Hai,

I have a tabstrip with 7 tabs and 7 pageviews in one multipage. Each of these tabs contains one grid, which binds with data on clicking the corresponding tab. But I want one tab to be selected on page load. I got it as selected by using the following code, but the corresponding grid inside the pageview is not showing.

RadTabStrip3.Tabs[0].Selected =

true; //first tab in the tabs collection
LoadPlanMenuMon.Visible =
true; //corresponding pageview
RadGrid1.Visible =
true; //corresponding radgrid inside pageview


Plz help.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Aug 2010, 08:09 AM
Hello,.


Set the RadMultiPage SelectedIndex also according to your need.

CS:
protected void Page_Load(object sender, EventArgs e)
{
 
    RadTabStrip2.Tabs[0].Selected = true; //first tab in the tabs collection
    RadMultiPage1.SelectedIndex = RadTabStrip2.SelectedIndex; // Set SelectedIndex for MultiPage
}


-Shinu.
Tags
TabStrip
Asked by
Regeesh Joseph
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or