jQuery UI Widgets Forums Grid jqxGrid Last Column Resizing

This topic contains 6 replies, has 3 voices, and was last updated by  iyanark 10 years, 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • jqxGrid Last Column Resizing #26107

    nwayve
    Member

    I was testing out the jqxGrid in version 2.9.3 and got to playing with column resizing.  One thing I noticed was that it was impossible to resize the last column.  If I clicked and dragged it off to the right, it wouldn’t expand, and in fact, it get a few pixels smaller.

    The only way I can get the last column to expand is if I enable column reordering and I move the last column to the n-1 position, resize it to the desired with, and then move it back to the last position again.  Am I missing something?

    I’m using jqx.base.css and jqx-all.js.

    The only option I’ve changed from default is { columnsresize: true }

    I’ve noticed in the demo, the last column has its resize property set to false.  Is this recommended/required?

    Thanks for the help.

    jqxGrid Last Column Resizing #26112

    Peter Stoev
    Keymaster

    Hi nwayve,

    In case the last column’s resizing is enabled, then you would be able to resize it i.e to increase/decrease its width.
    You may look at this sample: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/bindingtoarray.htm?web. The last column is resizable. To extend its size, drag it to the right.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    jqxGrid Last Column Resizing #26118

    nwayve
    Member

    Ah, this works because there is a vertical scroll bar. I just added data to my jqxGrid and the resizing of the last column works as it does in the example you provided. Try emptying the data out of your example (hiding the vertical scrollbar) and see if it still does the same behavior. Sorry, I forgot to mention that it was in a grid with no data =\

    Here’s a jsfiddle with data in it, and as you can see it works like your example.
    Here’s the same jsfiddle with the data set to an empty array. Try to expand the last column.
    Notice each attempt to expand it actually shrinks it a little be each time.

    jqxGrid Last Column Resizing #26119

    Peter Stoev
    Keymaster

    Hi nwayve,

    The width in this case will not be possible to be increased because the resizing will be out of the bounds of the Grid and that is not allowed.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqxGrid Last Column Resizing #47127

    iyanark
    Participant

    Hi,

    I need to Disable ColumnResize for First and Last Column of the grid.

    When am trying to Re-size the columns to minimum width finally the Whole grid gets Moved together with Columns sometime.

    I need to apply ColumnResize specifically for some Columns and not for all the columns in a grid.

    Thanks in Advance

    Best Regards
    Iyanar K

    jqxGrid Last Column Resizing #47133

    Peter Stoev
    Keymaster

    Hi Iyanar,

    Each column has resizable property which you can set to true or false.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    jqxGrid Last Column Resizing #47134

    iyanark
    Participant

    Hi Stoev,

    Thanks for the reply, its Working !!

    Best Regards
    Iyanar K

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

You must be logged in to reply to this topic.