jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: adding pager to autosize grid adding pager to autosize grid #29545

    avi
    Participant

    Hi Peter,

    Thanks for the information.

    Wanted to know if the above scenario (#29451) is going to be possible if i’m to use pixels for height and width of the windows instead of %.

    Minus the outer div. Is this possible and how…?

    Thanks
    Avi

    in reply to: adding pager to autosize grid adding pager to autosize grid #29451

    avi
    Participant

    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

Viewing 2 posts - 1 through 2 (of 2 total)