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

RadTabStrip OnTabClick

3 Answers 326 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
omri
Top achievements
Rank 1
omri asked on 06 Jun 2016, 07:26 AM

Hello,

I'm using a RadTabStrip control and its OnTabClick event

It's working fine except for when the tab clicked is the active tab.

Then the event doesn't fire at all.

Is there a way to listen to a click event for an active tab ?

 

Thanks!

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 08 Jun 2016, 03:24 PM
Hello,

By design the OnTabClick event does not fire when you click the selected tab and there is no other server-side event related to tab clicking/selecting.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Pedro
Top achievements
Rank 1
answered on 01 Jul 2016, 04:41 PM

I have a RadTabStrip containing many RadTab and the RadMultiplePage with many RadPageView. I need that when I click on RadTab "A" show me RadPageView "Description" and when I click on RadTab "B" show me RadPageView "Details".

How do I get it?

0
Ivan Danchev
Telerik team
answered on 05 Jul 2016, 10:35 AM
Hello Pedro,

This can be achieved by setting the Tab's PageViewID property. This way you can associate a specific PageView with a Tab and when that Tab is clicked the content of the associated PageView will be displayed, for example:​
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1">
    <Tabs>
        <telerik:RadTab runat="server" Text="Tab A" PageViewID="Description" Selected="true">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Tab B" PageViewID="Details">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Tab C" PageViewID="RadPageView3">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
    <telerik:RadPageView runat="server" ID="Description">
        ...Description content...
    </telerik:RadPageView>
    <telerik:RadPageView runat="server" ID="Details">
        ...Details content...
    </telerik:RadPageView>
    <telerik:RadPageView runat="server" ID="RadPageView3">
        ...PageView3 content...
    </telerik:RadPageView>
</telerik:RadMultiPage>


Regards,
Ivan Danchev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TabStrip
Asked by
omri
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Pedro
Top achievements
Rank 1
Share this question
or