How can I modify the default options of Window ?

3 posts, 1 answers
  1. hustcer
    hustcer avatar
    20 posts
    Member since:
    Apr 2014

    Posted 21 May 2014 Link to this post

    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. Answer
    Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 22 May 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. hustcer
    hustcer avatar
    20 posts
    Member since:
    Apr 2014

    Posted 22 May 2014 in reply to Alex Gyoshev Link to this post

    That's great, Thanks!
Back to Top