Dynamic TabStrip

2 posts, 0 answers
  1. Gary
    Gary avatar
    4 posts
    Member since:
    Jan 2008

    Posted 28 Nov 2013 Link to this post

    Working with KendoUI Mobile & Phonegap for a month or so, all good so far.   Just hoping for some advice on dynamically building tabs/views (if possible).
    Basically, I would like to have different tabs/views based on the logged in user.  There could be many different combinations of tabs/views. 

    Possible views/tabs: news, about, weather, video, articles, maps, (many more)

    For example,
    User 1 gets views/tabs: news, weather, maps
    User 2 gets view/tabs: video, maps, about

    Do you suggest I build the layout programmatically before the page is loaded?  Inject layout into the DOM?  Programmatically hide tabs not associated with current user?  Other ideas?

    A simple example would be appreciated if what I'd like to do is feasible.

    Thank you.  
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 29 Nov 2013 Link to this post

    Hello Gary,

    Changing the contents of the TabStrip dynamically is not currently supported in Kendo UI Mobile. The best approach that I would suggest is to use create the needed tabstrips as part of the layout, and then using the show event of the layout you can show/hide the tabstrip that you need to display. Please check the following example, showing a possible implementation:


    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top