Duplicate Restore Action Buttons on Window

3 posts, 0 answers
  1. Rob
    Rob avatar
    7 posts
    Member since:
    Feb 2015

    Posted 29 Apr 2016 Link to this post

    Hello, I'm getting very strange behavior on my action buttons on a Kendo Window. I'm currently on UI for ASP.NET MVC 2015.2.805, should I upgrade? ( i see UI for ASP.NET MVC Q1 2016 SP1 has Minimize / maximize events listed, any benefit?)

    My setup is, a main view which loads a window, which contents are a kendo scheduler.  Here is the razor declaration for the window.

    .Title("Scheduler Window")      
        .Content(@<text>@Html.Action("_EvaultBackupSchedulerPopOut", "Dashboard")</text>)
        .Position(settings => settings
         .Actions(actions => actions              
         .Events(ev => ev                                 


    You'll notice i've started over-writing all of the real close and maximize actions with custom ones, simply because they don't work correctly out of the box; ie.Close never consistently fired my onClose method (50% or less). Maximize and restore were not working correctly and still not.

    Now what's happening, when I maximize, I get two restore buttons show up which do not actually work correctly either.
    Look at my 'restore code' image of how the HTML renders out.
    Look at the restore icons to see what shows up.



  2. Rob
    Rob avatar
    7 posts
    Member since:
    Feb 2015

    Posted 29 Apr 2016 Link to this post

    So after playing with this for a bit, I found more strange behavior.

    I even with .Custom("Maximize") or .Custom("maximize") and EVEN .Custom("maximize-custom") the action would call my custom method and then immediately call its internal maximize methods. Even if I put in preventdefault, it still fires!

    So i renamed it to .Custom("custom-max")
    then used this 

    $(".k-i-custom-max").click( function (e) {

    And its working perfectly... what gives?

  3. Konstantin Dikov
    Konstantin Dikov avatar
    2087 posts

    Posted 03 May 2016 Link to this post

    Hi Rob,

    The "Maximize" word seems to be interpreted like the built-in maximized button, despite the fact that there might be something else after the name. If you avoid starting the custom commands with the built-in ones, there  should be no problems.

    As for the initial problems that you are facing with the built-in buttons, can you please upgrade to the latest version and see if they could be replicated? If so, you can report the exact bugs, so we can forward them to our developers team.

    Best Regards,
    Konstantin Dikov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top