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

Targeting a specific window to hide all buttons

2 Answers 18 Views
Window
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 08 Nov 2012, 03:31 PM
I am looking for a way to target a specific window (in this case a modal pop up that I don't want any buttons on -- it is modal, after all).

I know I can do something like this:

div .k-window-action
{
    visibility: hidden;
}

but that gets all <div>s and I really don't want to do that.

The div in question:
<div id="ui-loadingPopUp">test!</div>

I've tried things like "div#loadingPopUp .k-window-action" but that doesn't work either.

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 13 Nov 2012, 11:16 AM
Hello Phil,

You can disable the action buttons entirely when the Window is initialized:
$("#wnd").kendoWindow({
    actions: {},
    modal: true
})

Alternatively you can hide the window action container with CSS or jQuery via selecting the respective element by id.

The div in question:
<div id="ui-loadingPopUp">test!</div>


div#ui-loadingPopUp .k-window-actions


Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Phil
Top achievements
Rank 1
answered on 13 Nov 2012, 12:40 PM
Thanks for the reply.  I will check those suggestions out.
Tags
Window
Asked by
Phil
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Phil
Top achievements
Rank 1
Share this question
or