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

Set initial active cell

1 Answer 453 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Wayne Hiller asked on 23 Oct 2015, 04:40 PM

What is the correct way to set the initial active cell?

sheets: [{
                    selection: "A2:A2",
                    activeCell: "A2"
                }] 

This sets the active cell visually but when I press Tab to move to the next cell I get an error "TypeError: topLeft is undefined"

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 27 Oct 2015, 08:19 AM

Hello Wayne Hiller,

 

This seems like a bug that we need to work on. I have logged it in our internal bug tracker so it should be fixed for the next official release.

 

As a small gesture of gratitude I have updated your Telerik Points balance.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
serge
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 12 May 2021, 01:55 PM

is still not clear how to correctly set the active cell, in 2021
Martin
Telerik team
commented on 14 May 2021, 10:21 AM

Hello, Serge,

Here you will find a small example how to set an active cell.

Let me know how that works.

Regards,

Martin

serge
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 17 May 2021, 01:44 PM

is there a way to SET the active cell (vs initialize the grid with an active cell), I tried sheets()[0].activeCell("C11") it throws errors
serge
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 17 May 2021, 01:45 PM

Uncaught TypeError: e.first is not a function at init.activeCell (https://kendo.cdn.telerik.com/2021.1.330/js/kendo.all.min.js:103:18344) at init.activeCell (https://kendo.cdn.telerik.com/2021.1.330/js/kendo.all.min.js:104:1992)
Martin
Telerik team
commented on 19 May 2021, 09:51 AM

The Sheet class currently does not have an activeCell method to programatically set the activeCell. You can try to change the range and then select it to see if the result would be helpful to you. Here is a small example for reference.
Tags
Spreadsheet
Asked by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Answers by
Kiril Nikolov
Telerik team
Share this question
or