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

Single in-line editable row - how

1 Answer 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
xav
Top achievements
Rank 1
xav asked on 26 Nov 2018, 05:19 PM

We are using the grid to display forecast data.  it has about 15 rows.  In all but two rows, we are doing custom editing (launching another screen to edit values).  We use a column with our custom buttons to do launch the secondary screen.

In two of the rows, we would like to have in-line editing.  We'll use the same custom buttons to do this. However, we cannot find a way to programmatically put a row into in-line editing (EDIT MODE).  Is there a way to do this?  All we are able to do is to make the entire grid in-line editable and that is not what we desire. 

TIA! 

--- xavier

1 Answer, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 28 Nov 2018, 11:49 AM
Hello Xavier,

The grid has the editRow method which switches the specified table row in edit mode. You can use it within the click handler of the custom command as follows:

function onEditCommandClick(e) {
  e.preventDefault();
 
  this.editRow($(e.currentTarget).closest("tr"));
}


Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
xav
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or