This is a migrated thread and some comments may be shown as answers.

NoRecordsTemplateDirective for kendo chart?

2 Answers 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bryan Smouse
Top achievements
Rank 1
Bryan Smouse asked on 18 Jun 2018, 06:29 PM

Is there a way to define a no-record template for a kendo chart similiar to nesting a <ng-template> tag with the kendoGridNoRecordsTemplate directive inside <kendo-grid>?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Bryan Smouse
Top achievements
Rank 1
answered on 19 Jun 2018, 04:08 PM
I made my own "no records found" div and am showing/hiding using *ngIf but wondered if there was a built in template?
0
Svet
Telerik team
answered on 20 Jun 2018, 08:53 AM
Hi Bryan,

Currently we do not provide such a feature out of the box.

If you have the time, please submit a new feature request in our UserVoice portal at the following link:
http://kendoui-feedback.telerik.com/forums/555517-kendo-ui-for-angular-feedback

Indeed, implementing a custom div, that is displayed based on an *ngIf condition is a valid way of achieving the desired functionality. Check the following sample plunker demonstrating this approach:
https://plnkr.co/edit/nvuh3oNlLvWaJ8HGBpLk?p=preview

I hope this helps.

Regards,
Svetlin
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Bryan Smouse
Top achievements
Rank 1
Answers by
Bryan Smouse
Top achievements
Rank 1
Svet
Telerik team
Share this question
or