Cannot get buttongroup using .data("kendoMobileButtonGroup")

2 posts, 1 answers
  1. Michael
    Michael avatar
    4 posts
    Member since:
    Jun 2012

    Posted 15 Jan 2013 Link to this post


    After some hours of debugging I have now realised that it is not possible to reference controls from another view until the view has been been shown at least once. This presents a problem for me as I need to extract data from a view which may or may not have been initialised. What can I call to force the all the items in the view to be generated so that I can at least access the controls programmatically even if the user has never browsed to that view?

    Many thanks
  2. Answer
    Alexander Valchev
    Alexander Valchev avatar
    2889 posts

    Posted 17 Jan 2013 Link to this post

    Hi Michael,

    By design widgets are initialized on demand when the application navigates to the corresponding View. For more information please see this topic. This is done for performance reasons - initializing all the widgets from the beginning may slow down the general performance of your application.

    Could you please provide more details about your scenario and if possible an example? What data you would like to extract from the ButtonGroup widget? Probably I would be able to suggest a workaround using custom data-attributes.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top