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

Select mobile tabstrip item that is already selected

1 Answer 44 Views
TabStrip (Mobile)
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 19 Jun 2014, 01:36 PM
I am trying to fire an action every time a mobile tabstrip item is selected and not just the first click. This is very common for refreshing the current view or scrolling back to the top on apps like Twitter that are an endless scrolling list. 

data-select="onSelect" only fires when the item is inactive (first time) and data-click="onClick" which I saw here in the forums does nothing nor is it in the api docs (deprecated maybe?). 

I tried simply using jQuery to get (#tabstrip a).click() and then reset the scroller of the current view but this would only fire on subsequent clicks (not the initial) and it wasn't working right on my phone, only in the simulator. 

Please advise on the best way to do this?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 24 Jun 2014, 10:52 AM
Hello Brad,

The select event does not fire when you click on already selected items as the selection does not change, so there is no select event. You can achieve the same using jQuery and get every click on a tabstrip item, please check the following example and let me know if it helps:

http://jsbin.com/qidirefe/1/edit

Regards,
Kiril Nikolov
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
TabStrip (Mobile)
Asked by
Brad
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or