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

modalview state

3 Answers 5 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
André
Top achievements
Rank 1
André asked on 11 May 2015, 02:43 PM

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

 

Regards.

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 11 May 2015, 02:50 PM

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!
 
0
André
Top achievements
Rank 1
answered on 11 May 2015, 02:56 PM

works great..

tnks Kiril!

0
Kiril Nikolov
Telerik team
answered on 12 May 2015, 09:43 AM

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!
 
Tags
General Discussions
Asked by
André
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
André
Top achievements
Rank 1
Share this question
or