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

Diable In-cell editing and retain the remove functionality

1 Answer 287 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Celstream
Top achievements
Rank 1
Celstream asked on 01 Jul 2013, 07:33 AM
Hi,

I want to diable in-cell editing. I.E., I do not want user to double click on the cell and edit it.

However, if i disable editable, I am not able to perform row remove.

I have added remove functionality and edit functionality in a column like in this example.
http://demos.kendoui.com/web/grid/editing-inline.html

I am not using editable: "inline", in stead I am using editable: "true"

Because I want to prevent default
(e.preventDefault) and write my own functionality.

Can you help me with this
All I want is 
1. Non-Editable cells
2. Edit and Delete works as per above example
3. Edit default functionality to be overwritten with mine

Please help me with this
Thank you

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 01 Jul 2013, 03:33 PM
Hello,

To prevent inline editing you need to set the editable configuration to false, and then use the removeRow() method to delete rows in your grid. 

When editing is disabled, the default command buttons will stop working so you should configure custom command buttons for edit/delete actions.

For more information please check our demo with custom commands or follow this link to learn how to use it:

http://docs.kendoui.com/api/web/grid#configuration-columns.command.click

Regards,
Kiril Nikolov
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
Celstream
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or