jQWidgets Forums

jQuery UI Widgets Forums Grid Compute best width on dynamic grid

This topic contains 1 reply, has 2 voices, and was last updated by  Christopher 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Compute best width on dynamic grid #88036

    engineering87
    Participant

    Hi all,
    I need to compute and set the best fitting witdh for a dynamic grid. I know there is not an ‘auto width’ option on grid object so I have to compute by myself. The grid is made by a single column group and a number of dynamic column, how I can set the witdh option?
    I try to count the column number and multiple by a constant px but it’s not the best way due to the column group header (also the header length is dynamic).

    Thank you

    Compute best width on dynamic grid #88069

    Christopher
    Participant

    Hi engineering87,

    Keep in mind that if you want to have dynamic columns in your dynamic grid, you will have to recalculate the width of the jqxGrid every time you resize a column which will reflect on performance. In order to calculate the total needed width for the jqxgrid you will have to sum the width of all the columns.

    Best Regards,
    Christopher

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.