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

Set default cell value on each new row

1 Answer 260 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 26 Jul 2016, 08:39 AM

hi guys, 

I'm trying to set a default value for all the cells of a specific index whenever a new row in created in the spreadsheet. 

I wanted to do this with the change event of the spreadsheet and basically do: get current selected cell position & go to my desired index on that row and add the default value. However i wasn't able to find how to get the selected's cell position in the change event function.

Another idea was to set a default value for my specific cell index with "sheets.rows.cells.value" but i see it needs a row index which in my case is dynamic.

 

Thanks a lot for the help

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 28 Jul 2016, 07:53 AM

Hello Erik,

Indeed in the change event there is no information about the row and cell of the inserted row. 

A possible solution would be to find the range for a specific cell and set its value. Please refer to the example below insertRow article.

Regards,
Boyan Dimitrov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Spreadsheet
Asked by
Erik
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or