Count numbers of clicks in selected tab

3 posts, 0 answers
  1. Christian
    Christian avatar
    11 posts
    Member since:
    Sep 2015

    Posted 07 Jan Link to this post

    Hi again,

    I am using RadTabstrip with 3 tabs in a master page and want to display a counter that shows total number of clicks for each tab. For instance, if I select a tab (which send me to another page) it should show me total number of clicks on that particular page.  

    How can I achieve this function?

  2. Christian
    Christian avatar
    11 posts
    Member since:
    Sep 2015

    Posted 07 Jan in reply to Christian Link to this post

    Is it possible to make a click counter from RadTabStrip and display it?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    282 posts

    Posted 12 Jan Link to this post

    Hello Christian,

    In your RadTabStrip scenario, you could use the client side events to count the clicks on the different tabs you have and then display that value in the required place. More specifically, you could use the OnClientTabSelected event, check which is the selected tab and add 1 to the total selections count for this respective tab. You could keep this information in a javaScript variable on your page. You can learn more about the client-side programming when using RadTabStrip from our Documentation.

    I hope that the above helps you.

    Veselin Tsvetanov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top