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

Cannot get buttongroup using .data("kendoMobileButtonGroup")

1 Answer 87 Views
ButtonGroup
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 16 Jan 2013, 12:52 AM
Hi

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
Michael

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 17 Jan 2013, 01:49 PM
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!
Tags
ButtonGroup
Asked by
Michael
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or