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

How can I modify the default options of Window ?

2 Answers 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
hustcer
Top achievements
Rank 1
hustcer asked on 22 May 2014, 02:36 AM
Hello everyone:

I want to modify the default options of window to:
{
    modal     : true,
    animation : false
}
Is there a way to override the default options?

I know that we can create a new kendo plugin which extend from kendo.ui.Window to do that. But that way, we have to change all our kendo widget name, that's what we want to avoid. Any suggestions? Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 22 May 2014, 07:11 AM
Hello Justin,

You can extend the default options object through the prototype, like this:

      $.extend(kendo.ui.Window.prototype.options, {
        modal: true,
        animation: false
      });

Here is a Dojo snippet that shows this in action.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
hustcer
Top achievements
Rank 1
answered on 22 May 2014, 07:41 AM
That's great, Thanks!
Tags
Window
Asked by
hustcer
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
hustcer
Top achievements
Rank 1
Share this question
or