Upon opening the Window, the widget is not getting focused when using jQuery 3.6.0.
The Window is not focused upon opening.
The Window should be focused upon opening.
Currently Kendo dialog configuration (https://docs.telerik.com/kendo-ui/api/javascript/ui/dialog) does not provide a built in configuration option to apply class or id to the action buttons. This feature will enable the end user to style the buttons (e.g. add action button background color) in accordance with their preference.
I am loading content into the window asynchronously and would like to see an event that I can subscribe to that would fire when this content has finished loading.
When using Kendo Bootstrap v4 theme and attempting to display a maximized Kendo Window with iFrame content the iFrame does not take up the full height of the Kendo Window.
The behavior is observed with Safari browser on MacOS X or iOS
The iFrame should take up the full height of the Kendo Window.
Adding the following style resolves the observed behavior:
<style type="text/css">
.k-window-content.k-window-iframecontent {
height:100%;
}
</style>
We should not lose functionality that the jquery dialog already supports. Keydown is an important aspect in many web apps and right now a user can click the escape button if entering in a bunch of data and it closes out the window.
I need to call .center() on a kendo window to have it centered on the page. Position and size are already included in the configuration properties of kendo window so it would be logical to include the alignment as well.
If the close method can accept the parameter object, then we can check if execute our logic in the close event.
Allow the toolbar to be docked to the Kendo window at the top under the title or tabstip at the top under the tab, this way the scrolling would keep the toolbar in place and would be always visible for user action
Please allow for the dynamic creation of kendo windows (straight from javascript) that don't require you to have an existing element to attach the window to (or having to manually create div's in the DOM). Telerik.Window has a name property that sets the ID of the window so one can create windows easier by calling $.telerik.window.create({}) and set the name/id there. Kendo currently doesn't have that functionality. Why can't Kendo.Window do the same - either attach itself to an existing element like it currently does or if a unique name is given and no matching element with the same ID, then create a new div in the DOM and attach to it. Currently one has to manually create the DIV layers to create dynamic windows from.
Right now the only position option I see is center. It would be nice to have greater options for positioning the window in the viewport. I know that most people are fine with center but there are times when my business needs to display a lot of data. The center causes the window header to be center but then the user has to scroll or move the window to the top of the screen. Even just an option like TopCenter() would be enough for me. jQueryUI uses a position that takes strings.
Currently, a modal window allows for tabbing out of the window to controls on the page below. See forum posts http://www.telerik.com/forums/tab-key-and-modal-windows http://www.telerik.com/forums/kendo-window-tab-order-and-section-508 On a web app I run into the problem where the dialog is dependent on a grid row to be present, but due to tabbing out of the not so modal window I can delete the applicable grid row removing the context on which the modal window is based. This is a bug.
Hello,
The Kendo UI Window features in many widgets as an editable popup and form container - like the Kendo UI Grid and TreeList, the Kendo UI Diagram and it would be great to be able to keep using it and open it elsewhere dynamically as right now this takes no effect.:
window.setOptions({appendTo:
"#someOtherElement"
});
Thank you for voting!
When opening a Window with modal and preventScroll: true on a page with scroll bars, the scroll position resets every time the window is opened and closed.
This is demonstrated in the Dojo example linked here. In the Dojo, scroll to the bottom and click the button to open the Window, the scroll position will change.
Making the following modifications to the kendo.window.js file maintains the scroll position; would it be possible to add these modifications to a future release?
The code starts around line 912 of kendo.window.js
_stopDocumentScrolling: function () {
var that = this;
var containment = that.containment;
if (containment && !that._isPinned) {
that._storeOverflowRule(containment);
containment.css(OVERFLOW, HIDDEN);
that.wrapper.css({
maxWidth: containment.innerWidth(),
maxHeight: containment.innerHeight()
});
return;
}
var $body = $('body');
that._storeOverflowRule($body);
$body.css(OVERFLOW, HIDDEN);
// LSS: maintain scroll position when opening modal popup window
var $html = $('html'),
scrollTop = $html.scrollTop();
that._storeOverflowRule($html);
$html.css(OVERFLOW, HIDDEN);
// LSS: maintain scroll position when opening modal popup window
$html.add($body).scrollTop(scrollTop);
},
_enableDocumentScrolling: function () {
var that = this;
var containment = that.containment;
if (containment && !that._isPinned) {
that._restoreOverflowRule(containment);
that.wrapper.css({
maxWidth: containment.width,
maxHeight: containment.height
});
return;
}
that._restoreOverflowRule($(document.body));
that._restoreOverflowRule($('html'));
},
_storeOverflowRule: function ($element) {
if (this._isOverflowStored($element)) {
return;
}
var overflowRule = $element.get(0).style.overflow;
if (typeof overflowRule === 'string') {
$element.data(DATADOCOVERFLOWRULE, overflowRule);
// LSS: maintain scroll position when opening modal popup window
$element.data('scrollTop', $element.scrollTop());
}
},
_isOverflowStored: function ($element) {
return typeof $element.data(DATADOCOVERFLOWRULE) === 'string';
},
_restoreOverflowRule: function ($element) {
var overflowRule = $element.data(DATADOCOVERFLOWRULE);
if (overflowRule !== null && overflowRule !== undefined) {
$element.css(OVERFLOW, overflowRule);
$element.removeData(DATADOCOVERFLOWRULE);
// LSS: maintain scroll position when opening modal popup window
var scrollTop = $element.data('scrollTop')
$element.scrollTop(scrollTop)
$element.removeData('scrollTop');
} else {
$element.css(OVERFLOW, '');
}
},
It would be really nice to have an easy way to dynamically create Kendo Windows in AngularJS. And also with separate controller and template. https://github.com/kjartanvalur/angular-kendo-window Here i´m trying to do this but it would be really good to have a similar way integrated into Kendo. There is also a demo on the repo. http://plnkr.co/edit/6lyrblMhZ5ofuonmGoPZ?p=preview
Please add option for setting custom window titlebar icons like in this Telerik MVC Window example: http://demos.telerik.com/aspnet-mvc/razor/window/loadingexternalpage
Currently kendoWindow class publishes a "minimize" event but not the corresponding "restore" event, as far as I can tell. We need to catch the "restore" for our UI case, as follows: The default Minimize action leaves the window width unchanged, and collapses the height to 32 pixels. But we'd like to also shrink the minimized width, in order to further save space. It's easy to do that, via the minimize event, but then getting the original width back upon Restore is a problem - I can't find a straightforward way to do that, because the presence of the Restore button ("k-i-restore" class) is elusive - it isn't present at startup, nor is it found at the end of our custom "onMinimize" method. In the absence of the "restore" event, if anyone can suggest a straightforward way to accomplish the above, we would be grateful.
ViewModel (TypeScript/Aurelia):Hi Team
We found a bug when we try to dynamically include a title at the KendoUI - Window component.
When we visit the website, all is correctly(title.png) displayed. After an reload of the website (F5 or the refresh button) the title disappers(notitle.png)
Regrets Thomas
//private variable
private _helpWindowTitle: string;
constructor(private _taskQueue: TaskQueue) {
//set localization
this._i18n.setLocale('de')
.then(() => {
this._helpWindowTitle = this._i18n.tr("window.title");
});
}
View (HTML):
<div id="helpwindow" ak-window="k-width: 600px;
k-visible.bind: false;
k-title.two-way: _helpWindowTitle;
k-actions.bind: _helpActions;
k-widget.bind: _helpwindow">
<form class="d-flex-center flex-column" role="form" ref="form" submit.delegate="tryHelpRequest()">
<div class="form-group d-flex-center m-4">
<label class="white-space-nowrap m-0 mr-2"><span t="window.optionlabel"></span></label>
<ak-drop-down-list k-auto-bind.bind="false"
k-option-label="-"
k-data-text-field="name"
k-data-value-field="id"
k-data-source.bind="_helpDatasource"
k-value.two-way="_selectedHelp"
view-model.ref="_helpOptionDropdown"
k-on-ready.delegate="onReady($event.detail)"
style="width: 300px;">
</ak-drop-down-list>
</div>
<textarea ak-rich-editor="k-widget.two-way: _helpMessageEditor"
style="height:200px"
k-widget.two-way="editor"></textarea>
<button ak-button class="btn-arec-dark p-2 mt-2" submit-form.bind="form"><i class="fa fa-paper-plane mr-2"></i><span t="window.submittext"></span></button>
</form>
</div>
When there are multiple Window components initialized in one page the initially defined z-index is not changing when tapping on a given Window on an iPad device in the Safari browser.
Possible fix
Replace:wrapper.add(wrapper.children('.k-resize-handle,' + KWINDOWTITLEBAR)).on('mousedown' + NS, proxy(that.toFront, that));
With
wrapper.add(wrapper.children('.k-resize-handle,' + KWINDOWTITLEBAR)).on('mousedown' + NS, proxy(that.toFront, that)).on('touchstart' + NS, proxy(that.toFront, that));
The second Window continues to stay under window number 3
Once a given Window is tapped its should pop to the top and its content shouldn't be hidden by other Windows.
Regression introduced in R3 2020 SP1.
If the configured width of the Window exceeds the viewport width and animation is configured, the animation of the Window is broken.
Run the Dojo example and click the button
Note: If the issue is not replicated try to decrease the visible area.
The animation seems broken (screencast)
The Window should slide properly no matter of its width.