Need activeSheet name after new sheet selected for kendoSpreadsheet control

2 Answers 47 Views
Spreadsheet
George
Top achievements
Rank 3
Bronze
Bronze
Iron
George asked on 19 Nov 2024, 09:00 PM

Hi,

Was wondering if there is a way to get the actual active sheet as soon as it is selected. the selectSheet handler will access the previous sheet and its properties:

 

Is there a later event that will allow me to grab the activeSheet and tap into its properties? I am trying to get the sheet name, so I can cross reference it against a data source. but I need this info prior to someone selecting a cell (prior to a change event or accessing the change event handler) on the newly selected active sheet.

I need to grab the activeSheet as soon as the sheet is selected... I need to get the actual sheet that was selected on the event and NOT the previous sheet. Apparently activeSheet is updated after the selectSheet event. If I try to do this on the change event, it slows things down on the selection of the cell I am editing.

Thanks!

George

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 22 Nov 2024, 10:54 AM

Hello, George,

In the selectSheet event, you have the e.sheet parameter which is the sheet that will be activated, and not the previously selected one. Would that be useful for your requirement? Here's a small example for reference.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
George
Top achievements
Rank 3
Bronze
Bronze
Iron
answered on 22 Nov 2024, 06:29 PM

Martin,

Yes I think this will work. Tried the demo. Nice.

Thanks!

George

Tags
Spreadsheet
Asked by
George
Top achievements
Rank 3
Bronze
Bronze
Iron
Answers by
Martin
Telerik team
George
Top achievements
Rank 3
Bronze
Bronze
Iron
Share this question
or