Select mobile tabstrip item that is already selected

2 posts, 0 answers
  1. Brad
    Brad avatar
    8 posts
    Member since:
    Mar 2014

    Posted 19 Jun 2014 Link to this post

    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?
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 24 Jun 2014 Link to this post

    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:

    Kiril Nikolov

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

Back to Top