Kendo Treelist Get Options.noRecords setting from Databound

1 Answer 28 Views
TreeList
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
Lee asked on 11 Mar 2025, 05:26 PM
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

Sort by
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?

Regards,
Martin
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
commented on 14 Mar 2025, 10:53 AM

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.

Tags
TreeList
Asked by
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
Answers by
Martin
Telerik team
Share this question
or