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

Formatting with DataSource

3 Answers 114 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 31 Aug 2016, 01:01 PM

I was wondering how to insert a row above the first row of the spreadsheet when binding to a datasource. I can achieve the desired result by specifying the cells I want by looping through the datasource and specifying the cell values dynamically, but this slows everything down considerably.

3 Answers, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 02 Sep 2016, 10:35 AM

Hello Bryan,

I would suggest to access the dataSource for the specific sheet using the dataSource property of the Kendo UI SpreadSheet and use the Kendo UI DataSource API (insert method in this case). 

Regards,
Boyan Dimitrov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Bryan
Top achievements
Rank 1
answered on 06 Sep 2016, 01:30 PM

Not sure if that would help me, considering the datasource binds the schema field names in the top row, and I'm trying to insert a row above that.

 

0
Boyan Dimitrov
Telerik team
answered on 08 Sep 2016, 10:54 AM

Hello Bryan,

In this case you can take advantage of the insertRow method of the Sheet object. 

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
Bryan
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Bryan
Top achievements
Rank 1
Share this question
or