jQWidgets Forums

jQuery UI Widgets Forums Getting Started adding pager to autosize grid

This topic contains 4 replies, has 2 voices, and was last updated by  avi 11 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • adding pager to autosize grid #29348

    avi
    Participant

    Hi,

    How to add a pager to autosize grid. I’m not able to do so despite adding ( pageable: true ) property and setting it to true. Please guide, where could i be going wrong

    Thanks

     

    adding pager to autosize grid #29353

    Peter Stoev
    Keymaster

    Hi avi_bjn,

    Please, look at the Grid’s defaultfunctionality.htm sample available on our website. That is the first sample and the Grid is with enabled Paging and Auto Height.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    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

    adding pager to autosize grid #29463

    Peter Stoev
    Keymaster

    Hi avi,

    At present, jqxWindow does not accept percentage values for its width and height. In addition, the container of jqxWindow is always the document’s body as it is detached from its original HTML container and added to the body.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    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

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

You must be logged in to reply to this topic.