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

Spreadsheet event on comment

3 Answers 177 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Janaki
Top achievements
Rank 1
Janaki asked on 23 Mar 2021, 03:52 PM

Hi ,

we have a requirement to disable comment option on click of few cells (which are disabled) or to show a toastr message on click of comment that user can't add comment on specific cell. Do you have any such feature or event to track this requirement ?

 

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 26 Mar 2021, 11:03 AM

Hello Janaki,

Currently, the cell comment functionality is not tied to the state of the cell, so at the moment the comment dialog will appear for both enabled and disabled cells.

We don't expose a suitable event that can be used to control that behavior. Consider logging this as a feature request in our Feedback Portal: https://feedback.telerik.com/kendo-jquery-ui If the community is interested in such an enhancement, we will consider implementing it.

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Janaki
Top achievements
Rank 1
answered on 29 Mar 2021, 02:16 PM

Submitted a request. Is there a way to dynamically hide and show comment button based on some condition ?

0
Ivan Danchev
Telerik team
answered on 01 Apr 2021, 09:50 AM

Hi,

The Range object has a comment method, which allows setting or removing a comment (by passing null to the method): https://docs.telerik.com/kendo-ui/api/javascript/spreadsheet/range/methods/comment

You can use this method to show/remove a comment. Here's a dojo example showing the comment in A1 being removed in the click handler of a button: https://docs.telerik.com/kendo-ui/api/javascript/spreadsheet/range/methods/comment

Regards,
Ivan Danchev
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
Janaki
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Janaki
Top achievements
Rank 1
Share this question
or