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

Kendo spreadsheet add custom button in filter section

1 Answer 255 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 04 Feb 2020, 10:05 AM

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 06 Feb 2020, 08:28 AM

Hello Michael,

The Spreadsheet does not allow customization of the Filter menu out-of-the-box. There is an existing feature request in our Feedback Portal about it, so I suggest casting your vote for it.

A possible workaround is to bind to the click event of the .k-icon element, and prepend the button to the .k-action-buttons div.

$(".k-icon").click(function(){
  $(".k-action-buttons").prepend("<button class='k-button customBtn'>Custom Btn</button>");
  $(".customBtn").click(function(){
  	alert("Your custom code")
  })	
});

Here you will find a small Dojo example for reference.

Feel free to ask if you have any questions.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Spreadsheet
Asked by
Michael
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or