Issue creating and opening drawer with Javascript

5 posts, 0 answers
  1. Robert
    Robert avatar
    17 posts
    Member since:
    Mar 2011

    Posted 03 Oct 2013 Link to this post

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

    Posted 04 Oct 2013 Link to this post

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

    Posted 10 Dec 2013 Link to this post

    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
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 12 Dec 2013 Link to this post

    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!
  6. Dragan
    Dragan avatar
    8 posts
    Member since:
    Oct 2013

    Posted 12 Dec 2013 Link to this post

    Thanks Kiril.
Back to Top
Kendo UI is VS 2017 Ready