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

Dynamic TabStrip

1 Answer 127 Views
TabStrip (Mobile)
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 2
Gary asked on 28 Nov 2013, 09:40 AM
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.  

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 29 Nov 2013, 09:35 AM
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:

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

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TabStrip (Mobile)
Asked by
Gary
Top achievements
Rank 2
Answers by
Kiril Nikolov
Telerik team
Share this question
or