jQWidgets Forums

jQuery UI Widgets Forums Grid Last column auto width with reordering

This topic contains 2 replies, has 2 voices, and was last updated by  lil 10 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Last column auto width with reordering #66362

    lil
    Participant

    I have a grid which allows the user to both resize and reorder columns. I have an issue where there is a white space left after resizing columns. I’ve read on these forums how to resolve this: by setting the last column’s widch to auto and resize to false.

    However, i am still left with this issue when the user re-orders his columns. I’ve looked at a few of your demos and found the same problem. For example:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/reordercolumns.htm?classic

    Steps:
    1. Reorder the last column ‘Total Fat’ to be in the middle of the grid.
    2. Make ‘Total Fat’ smaller.
    –> There is a gap at the right of the grid. Calories is not the last column and its width is not set to auto.

    I’ve already tried the approach of dynamically managing which column is set to auto. Since i have hidden columns into the mix, i am having trouble getting the last column. I’m also unsure of what width to set on the previously last column (eg. ‘Total Fat’ in this example) so that the user does not see a resize.

    Is there an easy way to accomplish this?

    Last column auto width with reordering #66384

    Peter Stoev
    Keymaster

    Hi lil,

    Sorry, but this is not a problem. When you change the width of a column which is with auto-width, that column is no longer with auto-width.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Last column auto width with reordering #66441

    lil
    Participant

    Peter,
    I am not sure i understand your response. The question is how to get the last column to fill the grid when paired with your reordering feature. See the steps above with the link i provided. Is there any way to fix this?

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

You must be logged in to reply to this topic.