How do I get the e.sender.options.noRecords setting from a KendoTreeList databound event? It doesn't seem to be with the options like in a kendoGrid, yet it does seem to respond to adding or removing that option.
1 Answer, 1 is accepted
0
Martin
Telerik team
answered on 14 Mar 2025, 10:27 AM
Hello, Lee,
Unlike the Grid, the TreeList doesn't have a noRecords option. The TreeList will always show the according message. Could you please elaborate a bit more around the requirement you wish to achieve?
First, with noRecords turned on, it shows a message in the grid when no records are returned instead of just showing the headings and nothing more. This option does work in the treelist even though it isnt listed in the docs. I want to later be able to detect if this option is set to true or false but cant because it does not appear in the e.sender.options object in the databound event.
Martin
Telerik team
commented on 19 Mar 2025, 07:20 AM
Hello, Lee,
The options isn't listed in the API reference because it isn't implemented for the TreeList. The no records message is always visible in the component, and there's no option to turn it off. Having that said, you can assume that such an option would always be true.