Completed
Last Updated: 13 Jul 2021 11:22 by ADMIN
Kjartan Valur
Created on: 14 Jun 2018 09:48
Category: Dialog
Type: Feature Request
10
Open dialogs with separate component and template
It would be nice if it was possible to open kendo dialogs with separate component and template like you do in angular material, see below.

https://material.angular.io/components/dialog/overview

let dialogRef = dialog.open(UserProfileComponent, { 
height: '400px', 
width: '600px', 
});

dialogRef.afterClosed().subscribe(result => { 
console.log(`Dialog result: ${result}`); // Pizza! 
});
1 comment
ADMIN
Martin
Posted on: 13 Jul 2021 11:22

Hi Kjartan,

The DialogService allows you to provide a custom component for all building blocks of the Dialog (title-bar, content, and actions). Please check the following article for more details:

https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-single-component-rendering

Regards,
Martin
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.