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

Tab click event is not fired in RadTabStrip

1 Answer 185 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Manisha Shivjiani
Top achievements
Rank 1
Manisha Shivjiani asked on 30 May 2012, 09:17 PM
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

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 04 Jun 2012, 11:59 AM
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.
Tags
TabStrip
Asked by
Manisha Shivjiani
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or