would like to have some Angular TypeScript code run when the user clicks in the whitespace in the <li> elements rendered by the kendo-upload control.
1 Answer, 1 is accepted
1
Accepted
Martin
Telerik team
answered on 26 Apr 2023, 08:13 AM
Hi Mike,
Using the kendoFileSelectFileTemplate is the correct approach to customize the selected files. You can attach any event listeners inside the template, like:
However, the <li> element is automatically generated by the FileSelect component and the developer doesn't have direct access to it.
To avoid the padding that the <li> element has (and possibly interferes with the custom click handler), remove the paddings of the <li> and add them to the custom div element inside. Here is an example: