Only selected tab should be postback

2 posts, 0 answers
  1. altaf
    altaf avatar
    50 posts
    Member since:
    Jun 2008

    Posted 04 Jul 2008 Link to this post

    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>

  2. Sarb
    Sarb avatar
    5 posts
    Member since:
    Jul 2007

    Posted 09 Jul 2008 Link to this post

    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;
    }
Back to Top