Tab click event is not fired in RadTabStrip

2 posts, 0 answers
  1. Manisha Shivjiani
    Manisha Shivjiani avatar
    24 posts
    Member since:
    Nov 2009

    Posted 30 May 2012 Link to this post

    Hi,
    I am using RadControls For Asp.net Ajax Q12012 SP1 version
    I am having issue with RadTabStrip - click event. It is not fired.
    Here is how the control is set up.

    <asp:XmlDataSource ID="XmlDSJATabs" runat="server" DataFile="~\App_Data\JATabStrip.xml"
        XPath="//TabCollection/Tab"></asp:XmlDataSource>
          
    <p>
        <telerik:RadTabStrip ID="testRadTabStrip" runat="server" 
        DataTextField="Text"   DataValueField="Text" DataSourceID="XmlDSJATabs" 
            SelectedIndex="0" MultiPageID="RadMPJA" 
             AutoPostBack="True" 
            ontabdatabound="testRadTabStrip_TabDataBound" 
            ontabclick="testRadTabStrip_TabClick" CausesValidation="False" 
            ClickSelectedTab="True" >
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="RadMPJA" runat="server">
            <telerik:RadPageView ID="RPV1" runat="server" Width="100%">
                PageView1</telerik:RadPageView>
            <telerik:RadPageView ID="RPV2" runat="server" Width="100%">
                PageView2</telerik:RadPageView>
            <telerik:RadPageView ID="RPV3" runat="server" Width="100%">
                PageView3</telerik:RadPageView>
        </telerik:RadMultiPage>
    </p>

    Here is the xml file for xml data source.
    <?xml version="1.0" encoding="utf-8" ?>
    <TabCollection>
      <Tab Text="Customer" PageViewID="RPV1"></Tab>
      <Tab Text="Product" PageViewID="RPV2"></Tab>
      <Tab Text="FAQ" PageViewID="RPV2"></Tab>
    </TabCollection>


    I would appreciate help with this.
    Thanks,
    Manisha
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 04 Jun 2012 Link to this post

    Hello Manisha,

    I tested the code that you provided but I am not able to get the behavior that you describe. The click event fires as expected when a tab is clicked. Can you clarify the version of the controls that you are using since it might be a bug of some of the previous versions?

    All the best,
    Kate
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top