I have created a custom toolbar button for download, everything is working fine, now I would lke to know how can we greyed out the custom button when no file is selected.
Just like delete button gets greyed out when no file is selected.
Thanks
1 Answer, 1 is accepted
0
Ianko
Telerik team
answered on 25 Mar 2014, 12:04 PM
Hello Muhammad,
The logic for enabling and disabling on desired flag should be further implemented. There is no built-in functionality that exposes available approach for such mater. Note that you should handle this on each event that is changing the path of the Explorer (e.g. OnClientItemSelected).
The following is just an example for how to implement a logic that disables or enables the custom button according to the item's Delete permission: