This is a migrated thread and some comments may be shown as answers.
Hide/remove scrollbars
3 Answers 929 Views
This is a migrated thread and some comments may be shown as answers.
PaulMrozowski
Top achievements
Rank 1
PaulMrozowski asked on 19 Aug 2012, 07:32 PM
I have a pop-up window that keeps appearing with vertical and horizontal scrollbars. If I don't specify the height/width, they don't appear (but the window ends up being WAY to tall). As soon as I specify the height/width, the scrollbars appear. Is there a way to turn them off?

<div id="newBatchWindow"></div>
 
            $("#newBatchWindow").kendoWindow({               
                width: "425px",
                height: "375px",
                title: "New Batch",
                visible: false,
                resizable: false,
                modal: true,
                content: "/Batch/Create"
            });

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Aug 2012, 03:06 PM
Hi Paul,

You can disable Window scrollbars with CSS:

.k-window  div.k-window-content
{
        overflow: hidden;
}

However, their existence indicates large Window content, which will now be hidden and inaccessible by the user. I am not sure whether this will be acceptable. Generally, the Window requires width, otherwise it will always expand to the right edge of the browser, if its content can freely expand horizontally.

Let me know if you need more information.


All the best,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
JJ
Top achievements
Rank 1
answered on 18 Oct 2013, 09:38 PM

.k-window  div.k-window-content
{
        overflow: hidden;
}
  
  

How about I have 2 kendo window, one needs scroll bar and one doesn't need. If use the above code, the code will go to in the main window and block the scroll bar for both pop up window as well as the main window scroll bar. but main window needs scroll bar. Please help.
0
Dimo
Telerik team
answered on 21 Oct 2013, 06:15 AM
Hello JJ,

Please use only the WIndow's ID instead of the previously provided CSS selector.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Asked by
PaulMrozowski
Top achievements
Rank 1
Answers by
Dimo
Telerik team
JJ
Top achievements
Rank 1
Share this question
or