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

Issue creating and opening drawer with Javascript

4 Answers 99 Views
Drawer (Mobile)
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 03 Oct 2013, 09:28 AM
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

4 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 04 Oct 2013, 02:58 PM
Hello Robert,

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
0
Kiril Nikolov
Telerik team
answered on 12 Dec 2013, 08:41 AM
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
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.
Tags
Drawer (Mobile)
Asked by
Robert
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Dragan
Top achievements
Rank 1
Share this question
or