modalview state

4 posts, 1 answers
  1. André
    André avatar
    16 posts
    Member since:
    May 2015

    Posted 11 May 2015 Link to this post

    Hi, how can I get (by code) the state of some modalview? If it is opened or closed.

     

    Regards.

     

  2. Answer
    Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 11 May 2015 Link to this post

    Hello André,

    You can use jQuery to check the display property of the element wrapping the ModalView. It should be something like this:

    $("#modalViewId").getKendoMobileModalView().wrapper.closest(".km-modalview-root").css("display") //will return `none` of hidden and `block` if shown

    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. André
    André avatar
    16 posts
    Member since:
    May 2015

    Posted 11 May 2015 in reply to Kiril Nikolov Link to this post

    works great..

    tnks Kiril!

  4. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 12 May 2015 Link to this post

    Hello André,

    Happy to help.

    In case something else comes up, contact us right away.

    Regards,
    Kiril Nikolov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top