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

Count numbers of clicks in selected tab

2 Answers 104 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 07 Jan 2016, 06:08 PM

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 Answers, 1 is accepted

Sort by
0
Christian
Top achievements
Rank 1
answered on 07 Jan 2016, 07:09 PM
Is it possible to make a click counter from RadTabStrip and display it?
0
Veselin Tsvetanov
Telerik team
answered on 12 Jan 2016, 01:52 PM
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.

Regards,
Veselin Tsvetanov
Telerik
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
Tags
TabStrip
Asked by
Christian
Top achievements
Rank 1
Answers by
Christian
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Share this question
or