Is there a way to disable only the buttons within the Upload component?
I am aware of the `disabled` attribute which disables the whole Component, but I need to disable only the 2 buttons which appear once you have at least 1 file on the list
1 Answer, 1 is accepted
0
Accepted
Wissam
Telerik team
answered on 15 May 2023, 10:39 AM
Hello, David,
I believe that you are referring to the `Clear` and `Upload` buttons when the autoUpload prop is set to `false`. Is this correct?
You can disable them by setting their CSS styles `pointer-events` to `none` and `opacity` to `0.4`. In the below example, I am adding these styles in the onAdd event:
In addition, the Upload component has a showActionButtons prop which you can set to false to remove the visibility of the buttons if that matches what you need.
I hope this helps, but please let me know if you have any further questions.