Hello,
I am using RadtabStrip with two tabs. Previously i had problem of executing the page life cycle of all active tabs when post back occurs in anyone of the tabs.
I followed this thread and replaced multipageview with place holder for usercontrols. I didn't use ViewState[""].
http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/dynamic-loaded-controls-keep-running-even-if-not-active.aspx
Our requirement is different. Unless user enters data in first tab and clicks button (Like wizard), user willn't be allowed to go to next tab.
I am able to do that. But, under button click, though the second user control is loaded on screen, the first tab is still in the selection mode.
How can I change the selection mode to second tab when I transfer the user from one tab to next using the code.
I tried doing this.
In the parent page.aspx: I have
<telerik:RadTabStrip ID="RadTabStrip2" EnableTheming="true" runat="server" OnTabClick="RadTabStrip2_TabClick"
AutoPostBack="True" SelectedIndex="0">
<Tabs>
<telerik:RadTab runat="server" Text="Simple control" Value="0">
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Timer Control" Value="1" Enabled="false">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
Under Button click
RadTabStrip tabStrip = (RadTabStrip)Page.FindControl("RadTabStrip1");
RadTab Tab2 = tabStrip.FindTabByText("Timer Control");
Tab2.Enabled = true;
Tab2.Selected = true;
Panel Panel1 = (Panel)Page.FindControl("Panel1");
//Clear panel controls and add the newly loaded control
Panel1.Controls.Clear();
Panel1.Controls.Add(control);
I would like to attach the sample project. Could you pls let me know the process of attaching whole project.
Any help would be appreciated.
Thanks in Advance
I am using RadtabStrip with two tabs. Previously i had problem of executing the page life cycle of all active tabs when post back occurs in anyone of the tabs.
I followed this thread and replaced multipageview with place holder for usercontrols. I didn't use ViewState[""].
http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/dynamic-loaded-controls-keep-running-even-if-not-active.aspx
Our requirement is different. Unless user enters data in first tab and clicks button (Like wizard), user willn't be allowed to go to next tab.
I am able to do that. But, under button click, though the second user control is loaded on screen, the first tab is still in the selection mode.
How can I change the selection mode to second tab when I transfer the user from one tab to next using the code.
I tried doing this.
In the parent page.aspx: I have
<telerik:RadTabStrip ID="RadTabStrip2" EnableTheming="true" runat="server" OnTabClick="RadTabStrip2_TabClick"
AutoPostBack="True" SelectedIndex="0">
<Tabs>
<telerik:RadTab runat="server" Text="Simple control" Value="0">
</telerik:RadTab>
<telerik:RadTab runat="server" Text="Timer Control" Value="1" Enabled="false">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
Under Button click
RadTabStrip tabStrip = (RadTabStrip)Page.FindControl("RadTabStrip1");
RadTab Tab2 = tabStrip.FindTabByText("Timer Control");
Tab2.Enabled = true;
Tab2.Selected = true;
Panel Panel1 = (Panel)Page.FindControl("Panel1");
//Clear panel controls and add the newly loaded control
Panel1.Controls.Clear();
Panel1.Controls.Add(control);
I would like to attach the sample project. Could you pls let me know the process of attaching whole project.
Any help would be appreciated.
Thanks in Advance