Hi Peter,
Thanks for your quick response.
Also wanted to know if it is possible to dynamically change the height of a jqxWindow based on conditions.
For instance i have 2 windows (expanded state) one below the other in a container div with certain height (lets consider 80% – conatiner div), with some contents.
I have a requirement where if top window is collapsed, the below window should expand in height covering the subtracted height from above window.
Is this possible…?
Here is my window creation code with it’s config
var window1 = {
showCloseButton: false,
showCollapseButton: true,
height: “15%”,
draggable: false,
theme: theme
}
var window2 = {
showCloseButton: false,
showCollapseButton: true,
height: “30%”,
draggable: false,
theme: theme
}
demo.widgets.createWindow(‘#userWindow’, window1);
demo.widgets.createWindow(‘#detailsWindow’, window2);
My Jquery knowledge is rudimentary, though I tried using the below jquery condition, but the window won’t resize.
$(document).ready(function () {
$(“#userWindow”).on(‘collapse’, function () {
$(“#detailsWindow”).height(‘45%’);
});
$(“#userWindow”).on(‘expand’, function () {
$(“#detailsWindow”).height(‘30%’);
});
});
Thanks