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

Only selected tab should be postback

1 Answer 177 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
altaf
Top achievements
Rank 1
altaf asked on 04 Jul 2008, 07:30 AM
hello,

i have a tabstrip with multipages.
and each page has a control and when i click on one tab then all the controls postback. and i want that only clicked tab's page should be postback.
here is the code...

<

telerik:RadTabStrip ID="tabStrip1" runat="server"

Skin="Outlook" MultiPageID="multiPage_Details"

Orientation="VerticalLeft" AutoPostBack="true"

OnClientTabSelecting="onTabSelecting" SelectedIndex="0" >

<Tabs>

<telerik:RadTab Text="Tab1" PageViewID="pv1" runat="server">

</telerik:RadTab>

<telerik:RadTab Text="Tab2" PageViewID="pv2" runat="server">

</telerik:RadTab>

<telerik:RadTab Text="Tab3" runat="server" PageViewID="pv3">

</telerik:RadTab>

</Tabs>

</telerik:RadTabStrip>

<telerik:RadMultiPage runat="server" ID="multiPage_ProductDetails"

CssClass="multiPage" SelectedIndex="0">

<telerik:RadPageView runat="server" ID="pv1">

<div >

<uc3:ctrledit ID="Edit_1" runat="server" />

</div>

</telerik:RadPageView>

<telerik:RadPageView runat="server" ID="pv2">

<div style="width:700px">

<uc4:Content ID="Content1" runat="server" />

</div>

<telerik:RadPageView runat="server" ID="pv3">

<div style="width:700px">

<uc4:Content2 ID="Con1" runat="server" />

</div>

</

telerik:RadPageView>

1 Answer, 1 is accepted

Sort by
0
Sarb
Top achievements
Rank 1
answered on 09 Jul 2008, 01:51 PM
I think u have to use case in this condition..

switch(radTab.SelectedIndex)
{
case 0:
//LoadControl
break;
case 1:
//LoadControl
break;
case 2:
//LoadControl
break;
case 3:
//LoadControl
break;
}
Tags
TabStrip
Asked by
altaf
Top achievements
Rank 1
Answers by
Sarb
Top achievements
Rank 1
Share this question
or