Changing Window Title - Broken after upgrade

4 posts, 1 answers
  1. Greg
    Greg avatar
    6 posts
    Member since:
    Apr 2009

    Posted 27 Jan Link to this post

    I'm using a grid's edit event to modify the title of the popup kendo ui window.

    This code worked fine in 2016.1.226, but now in 2017.1.118 it does not.  After upgrading, the title now looks disabled and the window acts as if it doesn't have a title bar at all (cannot be dragged, cannot be closed by the X, etc).

    function gridEdit(e) {
        if (e.model.isNew()) {
            e.container.kendoWindow("title", "Add New User");
        }
        else {
            e.container.kendoWindow("title", "Edit User");
        }
    }
  2. Greg
    Greg avatar
    6 posts
    Member since:
    Apr 2009

    Posted 30 Jan in reply to Greg Link to this post

    After lots of searching, I was able to figure out a work-around.  I don't think this is how the folks at Telerik intended for us to change the title on a window, but it seems to work in 2017.1.118.  I'm also changing the update button of the grid's pop-up window if it's a new record.  I'm kind of surprised that, as nice as the grid is, it doesn't try to handle different text for new or existing records (or at least provide an easier way to change them).

    if (e.model.isNew()) {
        $(e.container).parent().find(".k-window-title").text("Add New User");
        $(e.container).parent().find(".k-grid-update").html("<span class=\"k-icon k-i-check\"></span>Add New User");
    }
    else {
        $(e.container).parent().find(".k-window-title").text("Edit User");
    }

     

  3. Answer
    Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    481 posts

    Posted 31 Jan Link to this post

    Hello Greg,

    Thank you for reporting the issue. We have logged a similar one, observed when the latest Kendo UI version is used in a combination with jQuery 3.1.1:

    https://github.com/telerik/kendo-ui-core/issues/2674

    If your scenario is the same, you can track the issue in our GitHub repo, and expect a fix in a future release. I can also provide the following alternative workaround:

    http://dojo.telerik.com/oZIYu/4

    I am sorry for any inconvenience caused.

    Regards,
    Dimiter Topalov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  4. Greg
    Greg avatar
    6 posts
    Member since:
    Apr 2009

    Posted 31 Jan in reply to Dimiter Topalov Link to this post

    Hello Dimiter,

    Yes, that must be the same issue.  I have another project that's still using jQuery 2.2.1 (with 2017.1.118) and it still works as expected.

    Thanks for the links.

    Greg

Back to Top