Pre built dialogs?

4 posts, 0 answers
  1. Joe
    Joe avatar
    205 posts
    Member since:
    May 2012

    Posted 14 Mar 2017 Link to this post

    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?

     

     

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1483 posts

    Posted 15 Mar 2017 Link to this post

    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.
  3. Joe
    Joe avatar
    205 posts
    Member since:
    May 2012

    Posted 15 Mar 2017 in reply to Ivan Danchev Link to this post

    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.
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1483 posts

    Posted 17 Mar 2017 Link to this post

    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.
Back to Top