How can we disable the Excel and PDF grid toolbar buttons if there is no record count?
2 Answers, 1 is accepted
0
Accepted
Tsvetomir
Telerik team
answered on 20 Feb 2019, 03:57 PM
Hi Reid,
In order to make some buttons within the grid's toolbar disabled, refer to the code snippets below:
1. Subscribe to the dataBound event of the grid:
.Events(ev=>ev.DataBound("onDataBound"))
2. Access the buttons within the toolbar and add the "k-state-disabled" class. This would make them appear disabled and will prevent the user from clicking them.
Let me know in case there is a need for additional clarifications.
Kind regards,
Tsvetomir
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.