RadTabStrip OnTabClick

4 posts, 0 answers
  1. omri
    omri avatar
    1 posts
    Member since:
    Jun 2016

    Posted 06 Jun Link to this post

    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!

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 08 Jun Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pedro
    Pedro avatar
    2 posts
    Member since:
    Jul 2016

    Posted 01 Jul Link to this post

    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?

  5. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 05 Jul Link to this post

    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.
Back to Top