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

Dinamically position

4 Answers 111 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 24 Mar 2014, 11:21 AM
Can i place it in the top center instead of the center of the browser? Or can i specify the x, y coordinates to position the modal view?

4 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 24 Mar 2014, 12:28 PM
Hi Andrea,

You can override the default position of the Kendo UI ModalView, using CSS. I have create a sample, showing how to override the default values, please check it out and let me know if you have any questions:

http://jsbin.com/yawilima/1/edit

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
Andrea
Top achievements
Rank 1
answered on 24 Mar 2014, 02:28 PM
Thanks, it works fine.
0
Kiril Nikolov
Telerik team
answered on 24 Mar 2014, 02:51 PM
Hi Andrea,

I am glad it helped!

In case you have any further questions, please do not hesitate to contact us.

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
Mark
Top achievements
Rank 1
answered on 09 Jul 2014, 06:05 PM
So I have been able to change all modalView's globally by using:
.km-modalview-root > div.k-animation-container  {
  position:absolute !important;
  top:0px !important;
  left:0px !important;
}

But I am not able to get this style to apply to only specific modalView's by using a CSS class and doing:
.km-modalview-root > div.k-animation-container .modalSave  {
  position:absolute !important;
  top:0px !important;
  left:0px !important;
}

Am I missing something?  How you can apply this to only certain modalViews?
Tags
ModalView
Asked by
Andrea
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Andrea
Top achievements
Rank 1
Mark
Top achievements
Rank 1
Share this question
or