Hello everyone,
I am trying to create a grid with both incell editing and a popup edit window. My grid is in popup mode, and i added a listener on the tables td's to invoke the editCell method. When the grid is in inline mode (or in incell, ofcourse) it has the desired effect of making the cell editable. In popup mode however, nothing happens, field just gets selected and chrome doesnt throw a warning.
Does anyone have any idea how to fix this?
I am trying to create a grid with both incell editing and a popup edit window. My grid is in popup mode, and i added a listener on the tables td's to invoke the editCell method. When the grid is in inline mode (or in incell, ofcourse) it has the desired effect of making the cell editable. In popup mode however, nothing happens, field just gets selected and chrome doesnt throw a warning.
Does anyone have any idea how to fix this?
editable: {
mode:
'popup'
,
}
$(
'#grid td'
).live(
'dblclick'
,
function
(e) {
$(
"#grid"
).data(
"kendoGrid"
).editCell($(
this
));
});
5 Answers, 1 is accepted
0
Danny
Top achievements
Rank 1
answered on 29 Aug 2012, 12:49 PM
Shameless bump
0
Daniël
Top achievements
Rank 2
answered on 29 Jan 2013, 11:29 AM
I have the same question.
I want to edit the entire dataitem in the popup, but also have the option of editing a single field on double click.
something like
I want to edit the entire dataitem in the popup, but also have the option of editing a single field on double click.
something like
$(
"#grid td"
).live(
'dblclick'
,
function
() {
$(
"#grid"
).data(
"kendoGrid"
).editCell($(
this
));
});
0
Hello,
Daniel
the Telerik team
The editCell method will not work when the Grid is not in incell editing mode. It is possible to achieve the described functionality by using incell editing for the Grid and a custom window to edit the row when a custom command button is pressed.
Kind regards,Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Daniël
Top achievements
Rank 2
answered on 04 Feb 2013, 03:48 PM
What command for the custom command button would I use?
I cannot use editRow().
Do you have an example?
I cannot use editRow().
Do you have an example?
0
Hello Daniƫl,
Daniel
the Telerik team
The approach will be similar to the one shown in this demo. Instead of showing the details, you could bind the item from the row to inputs in the Window content so that the values will be automatically updated.
Kind regards,Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!