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

Appearance of Tabstrip inside mobile view

3 Answers 79 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 30 May 2014, 10:26 AM
Hi
  The tabstrip doesn't appear correctly if it is inside a view that is initially hidden

  The below shows my problem, go to where the application is created and alternate between which of the two views is the initial view.

The appearance of the tabstrip is very different in both, if it is visible on startup it appears left aligned and generally correct, if not then
it appears centered

http://trykendoui.telerik.com/Ecug

thanks

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 30 May 2014, 11:28 AM
Hello Anthony,

The problem comes from the fact that when you initialize the TabStrip using the init event of the application, the view is not yet created and therefore the TabStrip cannot be correctly sized. This is why we strongly recommended to initialize the view's widgets in its init event, please check the updated example:

http://trykendoui.telerik.com/@Kiril/eKiD

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Anthony
Top achievements
Rank 1
answered on 30 May 2014, 11:34 AM
Hi
  It was a misunderstanding, I assumed that the init function on the application was the same as the init event on the view, but obviously not.

thanks


0
Kiril Nikolov
Telerik team
answered on 30 May 2014, 11:35 AM
Hi Anthony,

You can see the difference here:

http://docs.telerik.com/kendo-ui/api/mobile/view#events-init

and

http://docs.telerik.com/kendo-ui/api/mobile/application#events-init

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
Asked by
Anthony
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or