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

editCell method doesnt work in popup mode

5 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Danny
Top achievements
Rank 1
Danny asked on 21 Aug 2012, 12:50 PM
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?

editable: {
    mode: 'popup',
}

$('#grid td').live('dblclick', function (e) {
    $("#grid").data("kendoGrid").editCell($(this));
});

5 Answers, 1 is accepted

Sort by
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
$("#grid td").live('dblclick', function () {
    $("#grid").data("kendoGrid").editCell($(this));
});
0
Daniel
Telerik team
answered on 01 Feb 2013, 10:00 AM
Hello,

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?
0
Daniel
Telerik team
answered on 07 Feb 2013, 01:23 PM
Hello Daniƫl,

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!
Tags
Grid
Asked by
Danny
Top achievements
Rank 1
Answers by
Danny
Top achievements
Rank 1
Daniël
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or