Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
resize hierarchical grid to window size - how to resize children
posted

Hello Infragistics team,

I have a hierarchical grid and I want it to resize to full window size when the user is resizing the window. I got this to work except the children's column widths.

I use the following code:

$(window).resize(function () {
    resizeGrid();
});

function resizeGrid() {
    $("#grid1").igGrid("option", "height", window.innerHeight-250);
    $("#grid1").igGridResizing("resize", 0);

    // resize whole body to 100%
    $("#grid1").css("width", "100%");

    // resize whole header to body width (because 100% doesn't take 'vertical scroll bar width' into account)
    var width = $("#grid1").width();
    $("#grid1").parent().parent().find(".ui-iggrid-headertable").css("width", width);      
}

Can you please tell me how to resize the child tables.

Thank you in advance,

Petra.

Parents Reply Children
No Data