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

How to prevent the default row edit?

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 23 Oct 2014, 12:57 PM
Hi,

I'm working on a use case where the user is requires to enter a text before he is allowed to edit the content of a row. I want to use a jQuery UI Dialog to prompt a small form that the use need to fill before the row go to edit mode. Using jQuery I was able to bind a handler to the "click" event of the edit button, so I can open the dialog. However I can't find a way to prevent the grid from switch into edit mode before I get the response from the dialog.The result is that if the user close the dialog he can edit the row without fill out the form. Any ideas on how to prevent the default row edit?

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 27 Oct 2014, 09:23 AM
Hi Alexandre,

You can close the edit row by calling the cancelRow method. Here is a small test page which demonstrates a possible implementation of this approach.

Regards,
Rosen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or