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

Kendo Mobile Modalview Animation

3 Answers 166 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 11 Nov 2012, 11:53 PM
Is there a way to change the default 200ms fade:in modal view animation or disable it entirely? I tried manually setting the kendoMobileModalView's shim options but to no avail.
function btnShowModalView_Click(e) {
   var mv = $("#mvComposer").data("kendoMobileModalView");
   //look under the hood of kendoMobileModalView
   //console.log(mv);
   mv.shim.options.duration = 200;
   mv.shim.options.effect = "slide:up";
   mv.open();
}

3 Answers, 1 is accepted

Sort by
0
Przemek
Top achievements
Rank 1
answered on 18 Mar 2013, 04:14 PM
Dear Kendo Team,

I am also interested in changing a default transition for a modalView. Is there any way to achieve it? Any answer (yes/no) will be helpful and will prevent my team from looking around Kendo trying to solve the problem.

Thank you in advance for your assistance.

Regards,
Przemek
0
Iliana Dyankova
Telerik team
answered on 19 Mar 2013, 10:03 AM
Hi guys,

I am afraid at present Kendo UI Mobile ModalView does not expose such a property and there is no suitable workaround I can suggest. We will appreciate it if you submit this idea as a feature request at our UserVoice portal - this way the community would be able to evaluate it and if the suggestion gains popularity we will consider its implementation for future versions of the framework. Thank you in advance.

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Plamen Ratchev
Top achievements
Rank 1
answered on 15 Nov 2013, 01:38 PM
Actually this is possible (had to dig deeper in the kendo JS code). So the correct code looks something like this
function btnShowModalView_Click(e) {
   var mv = $("#mvComposer").data("kendoMobileModalView");
 
   mv.shim.popup.options.animation.open.duration = 400;       
   mv.shim.popup.options.animation.open.effects = "slideIn:up";
   mv.shim.popup.options.animation.close.duration = 400;  
    
   mv.open();
}
Hope this helps!

Plamen Ratchev
Tags
ModalView
Asked by
Joe
Top achievements
Rank 1
Answers by
Przemek
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Plamen Ratchev
Top achievements
Rank 1
Share this question
or