Appearance of Tabstrip inside mobile view

4 posts, 0 answers
  1. Anthony
    Anthony avatar
    122 posts
    Member since:
    Jun 2013

    Posted 30 May 2014 Link to this post

    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
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 30 May 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Anthony
    Anthony avatar
    122 posts
    Member since:
    Jun 2013

    Posted 30 May 2014 in reply to Kiril Nikolov Link to this post

    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


  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 30 May 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready