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
25
.
posted

.

Parents
  • 29417
    Verified Answer
    Offline posted

    Hello Thomas ,

     

    Thank you for posting in our forum.

    In general if the width of a column is set in pixels when resizing the browser the width of the other columns, that have width set in percentage, will not be automatically recalculated.

    A possible way to work around that is to use the resizing feature, which would allow you to set a minimumWidth option which will be applied when a column is resized.

    For example:

    {

                                                                                                                     name: "Resizing",

                                                                                                                     columnSettings: [

                                                                                                                                     { columnIndex: 0, minimumWidth: 100 },

                                                                                                                     ]

    }

    Since browser resizing does not automatically trigger column resizing you can force it, for example :

    window.onresize = reasizeFunc;

                                    function reasizeFunc()

                                    {

                                    $("#grid").igGridResizing("resize", 0);

                                    }

     

    So when you resize the browser that constraint will take place and the related column won’t allowed to get less than the specific minumunWidth while the other columns will be resized automatically as expected.

    I’ve attached a sample for your reference. Let me know if you’re aiming to achieve something similar.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://www.infragistics.com/support

     

    iggrid.zip
Reply Children
No Data