Hi There,
I am having an issue creating and showing a drawer using javascript rather than defining it in html.
I have reproduced the issue in a simple sample:
http://jsbin.com/oJaKiHU/1/edit
Is this possible or am i doing something wrong?
Thanks,
Rob
I am having an issue creating and showing a drawer using javascript rather than defining it in html.
I have reproduced the issue in a simple sample:
http://jsbin.com/oJaKiHU/1/edit
Is this possible or am i doing something wrong?
Thanks,
Rob
4 Answers, 1 is accepted
0
Hello Robert,
Initializing the Kendo UI Mobile Drawer using JavaScript is not currently supported. So the following code:
does not initialize the Kendo UI Drawer, and causes malfunction in your application. You can also check from our documentation that the Drawer can only be initialized using html data attribute.
http://docs.kendoui.com/api/mobile/drawer
Regards,
Kiril Nikolov
Telerik
Initializing the Kendo UI Mobile Drawer using JavaScript is not currently supported. So the following code:
$(
"#my-drawer"
).kendoMobileDrawer();
does not initialize the Kendo UI Drawer, and causes malfunction in your application. You can also check from our documentation that the Drawer can only be initialized using html data attribute.
http://docs.kendoui.com/api/mobile/drawer
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

Dragan
Top achievements
Rank 1
answered on 10 Dec 2013, 08:32 PM
Is programmatic initialization of Kendo Mobile Drawer widget still not supported in version 2013.3.1119?
Additionally, is it at all possible to achieve dynamic drawer content?
Regards,
Dragan
Additionally, is it at all possible to achieve dynamic drawer content?
Regards,
Dragan
0
Hello Robert,
Programmatic initialization of the Kendo UI Mobile Drawer is not supported with the latest version as well.
For your your second question - you are using a ListView inside your drawer to show the content, so you can use the ListView and change its content dynamically instead of changing the content of the drawer itself.
Regards,
Kiril Nikolov
Telerik
Programmatic initialization of the Kendo UI Mobile Drawer is not supported with the latest version as well.
For your your second question - you are using a ListView inside your drawer to show the content, so you can use the ListView and change its content dynamically instead of changing the content of the drawer itself.
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

Dragan
Top achievements
Rank 1
answered on 12 Dec 2013, 12:31 PM
Thanks Kiril.