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

Pre built dialogs?

3 Answers 117 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 14 Mar 2017, 08:17 PM

So according to the information on the Dialog demo page (http://demos.telerik.com/aspnet-mvc/dialog/index) there are:

  • Fully customizable visual appearance of the dialog title and body
  • Predefined Alert, Confirm, and Prompt Dialogs

But of course, it's not documented on the demo page.  So how do I call one of the pre-built dialogs, and secondly how can I change the style of it without mucking up every other style I've overridden for the telerik components?

 

 

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 15 Mar 2017, 08:54 AM
Hello Joe,

Here's a link to the section in the documentation, which explains how predefined dialogs can be used through the kendo object. An MVC wrapper is available for the Dialog only, not for the predefined dialogs. As for changing default styles of the Dialog, you can do so by using the class of the specific element you want to customize as a selector in the CSS rule and applying the desired style, for example:
.k-dialog-titlebar {
  height: 30px;
  background-color: lightblue;
}
 
.k-dialog {
  background-color: lightgreen;
}


Regards,
Ivan Danchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Joe
Top achievements
Rank 1
answered on 15 Mar 2017, 02:34 PM
Thanks, I typically limit myself to the MVC wrapper components, it's hard enough learning all of the crazy options for one set of components, much less two in completely different languages...  I really wish these components were better documented as it relates to styling them, and were a bit more separate.  I understand most people probably want to use themes, but I dislike the themes, and try to style each component but alas they all share so many commonalities that when I change one thing here in this specific component, it changes every component.  I spend most of my time trying to figure out exactly what style I need to override, it's a tedious PITA.
0
Ivan Danchev
Telerik team
answered on 17 Mar 2017, 12:33 PM
Hi Joe,

Improving our documentation and the other resources is a constant effort. With regard to the wrappers documentation not explaining all of the components' features, this is correct and often is because we try to avoid duplication in the documentation and document specifics of the MVC wrappers that differentiate them from their Kendo UI widget counterparts. Almost all of their functionality the wrappers inherit from the Kendo UI widgets they wrap and they share a common API.

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