RadSpreadsheet.activeColumnChanged event?

2 Answers 77 Views
Spreadsheet
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
Ian asked on 07 Mar 2023, 04:33 PM

Is there an event like this in the Spreadsheet control?

What I need is when the user selects a single column, I enable/disable various menu options, but I can't find an event which is fired when a column in a sheet gets selected.

(BTW - I got the name of this event from ChatGPT, which thinks that a RadSpreadsheet has this event, but it's working from data up to 2021, so maybe this is an old event?)

Thanks

 

2 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 08 Mar 2023, 06:53 AM

Hello Ian,

You can use one of the selection events for this. Detailed information is available here: Working with UI Selection.

I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
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.

Ian
Top achievements
Rank 2
Bronze
Iron
Iron
commented on 08 Mar 2023, 08:47 AM

Where are these events?

I have looked in the main RadSpreadsheet, in RadSpreadsheet.SpreadsheetElement, and in RadSpreadsheet.SpreadsheetElement.ActiveSheet, but can't find these 'Selection..' events in either the documentation or in the Intellisense.

They are also not listed in https://docs.telerik.com/devtools/winforms/controls/spreadsheet/events.

Please can you point me to how I can use these events?

Thanks

Thanks

0
Dimitar
Telerik team
answered on 08 Mar 2023, 09:49 AM

Hello Ian,

Here is how to use one of these events: 

public SpreadsheetForm() { InitializeComponent(); Selection selection = this.radSpreadsheet1.SpreadsheetElement.ActiveWorksheetEditor.Selection;

selection.SelectionChanging += Selection_SelectionChanging; } private void Selection_SelectionChanging(object sender, Telerik.WinForms.Controls.Spreadsheet.Worksheets.SelectionChangingEventArgs e) { }

Let me know if I can assist you further.

Regards,
Dimitar
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.

Tags
Spreadsheet
Asked by
Ian
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Dimitar
Telerik team
Share this question
or