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

Problem with grid and edtiable options

3 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Timur
Top achievements
Rank 1
Timur asked on 26 Jun 2012, 11:52 PM
Hello

i have an issue with the grid and the editable options.

this fiddle works fine http://jsfiddle.net/hansdampf10/nPXey/1/

In the config editable: true works fine.

I want to change the confirmation message on deletion so i changed config to this

editable: {
update: true, // puts the row in edit mode when it is clicked
destroy: true, 
        confirmation: "Custom message"
}

when i do this, the grid is not editable anymore and i can't add new entries. You can see the problem in this fiddle
http://jsfiddle.net/hansdampf10/JFnj6/1/

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 27 Jun 2012, 05:50 AM
Hello Timur,

You will need to set the mode to incell:

editable: {
    update: true, // puts the row in edit mode when it is clicked
    destroy: true,
  confirmation: "Custom message",
  mode: "incell"
}

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jesper
Top achievements
Rank 1
answered on 27 Jun 2012, 06:06 AM
In the documentation you clearly state that incell is the default mode. So having to explicitly set it is illogical. Please update the documentation or change the behaviour.
0
Timur
Top achievements
Rank 1
answered on 27 Jun 2012, 09:12 AM
great it worked. But like Jesper said it is not obvious from the documentation so an update in the docs would be helpful.
Tags
Grid
Asked by
Timur
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Jesper
Top achievements
Rank 1
Timur
Top achievements
Rank 1
Share this question
or