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

Changing Window Title - Broken after upgrade

3 Answers 233 Views
Window
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Iron
Greg asked on 27 Jan 2017, 05:22 PM

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");
    }
}

3 Answers, 1 is accepted

Sort by
0
Greg
Top achievements
Rank 1
Iron
answered on 30 Jan 2017, 04:50 PM

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");
}

 

0
Accepted
Dimiter Topalov
Telerik team
answered on 31 Jan 2017, 12:51 PM
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.
0
Greg
Top achievements
Rank 1
Iron
answered on 31 Jan 2017, 05:12 PM

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

Tags
Window
Asked by
Greg
Top achievements
Rank 1
Iron
Answers by
Greg
Top achievements
Rank 1
Iron
Dimiter Topalov
Telerik team
Share this question
or