Title cannot be false

4 posts, 0 answers
  1. Ori
    Ori avatar
    19 posts
    Member since:
    Feb 2015

    Posted 11 Jan Link to this post

    By specification one should be able to create dialog without title. So if you are using javascript there is no problem. You can set title to false and it works. But there is problem when you try to do it in MVC helper. Title in DialogBuilder accept only string. You are missing bool overload. 

    And additional request. Can you please update http://docs.telerik.com/kendo-ui/intro/supporting/scripts-layout with dependencies for dialog.

  2. Rumen
    Admin
    Rumen avatar
    13040 posts

    Posted 13 Jan Link to this post

    Hello Ori,

    If you want to hide the title, you should not set .Title setting or to set it to an empty string, e.g.

    @(Html.Kendo().Dialog()
            .Name("dialog")
            //.Title("")
            .Content("<p>A new version of <strong>Kendo UI</strong> is available. Would you like to download and install it now?<p>")
            .Width(400)

    Here you can see my test: https://www.screencast.com/t/Ri4VrS7uB

    Let me know if you, however, want to hide the whole titlebar. 

    Thank you for your report. We will definitely update the http://docs.telerik.com/kendo-ui/intro/supporting/scripts-layout  article.

    Best regards,
    Rumen
    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. Ori
    Ori avatar
    19 posts
    Member since:
    Feb 2015

    Posted 13 Jan Link to this post

    Yes, I would like option to remove/hide titlebar. There is difference in empty title and not showing titlebar. Setting title to false will remove titlebar if set from javascript. Same thing exist in window (both from javascript and from helper) so I excepted that it would behave same way.
    If there is no such functionality you should update documentation:
    Title(System.String)
    The text in the dialog title bar. If false, the dialog will be displayed without a title bar.

  4. Rumen
    Admin
    Rumen avatar
    13040 posts

    Posted 16 Jan Link to this post

    Hello Ori,

    I logged the reported missing functionality and you can follow its progress here.

    As a small note of gratitude for your contribution on improving the helper and its documentation, I've also updated your Telerik points.

    Regards,
    Rumen
    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