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

Dynamic Editor title with popup mode - is it possible?

1 Answer 498 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pavel
Top achievements
Rank 1
Pavel asked on 21 Jul 2014, 02:13 PM
Hi,
I am using Grid widget with Popup editor mode.
My items' fields are "title" and "contactPerson", both strings.
I'd like to set the popup's title dynamically, for example:

editable: {
    mode: "popup",
    window: {
        title: "Editing #=title#"
    }
}

So that if the row's "Edit" button is pressed the editor's title should be "Editing" + current_row_item.title
and if "Add new item" is pressed it should be "Adding new item".

Thx in advance.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 22 Jul 2014, 12:08 PM
Hello Pavel,

You can use the grid edit event, like shown in this Dojo snippet.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Pavel
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or