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

Title cannot be false

3 Answers 111 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
Ori
Top achievements
Rank 1
Ori asked on 11 Jan 2017, 02:28 PM

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.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Jan 2017, 01:48 PM

Hello Ori,

If you want to hide the title, you should not 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.
0
Ori
Top achievements
Rank 1
answered on 13 Jan 2017, 02:19 PM

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.

0
Rumen
Telerik team
answered on 16 Jan 2017, 09:51 AM

Hello Ori,

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

As a small note of gratitude for your contribution 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.
Tags
Dialog
Asked by
Ori
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ori
Top achievements
Rank 1
Share this question
or