jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Width API

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid Width API #91105

    jkapasi
    Participant

    Hello,

    My grid width is set to 100% in Initialization.

    width: 100%

    When my container div resizes, my grid does not resize and shows white space.

    Is there any workaround or some API like setcolumnproperty, other than refresh and render, which makes the width of the entire grid to 100%.

    Thank You.

    Regards
    Jash Kapasi

    Grid Width API #91125

    Hristo
    Participant

    Hello jkapasi,

    I try our “Fluid Size” demo and looks work fine.
    Also, you could use updatebounddata method of the Grid.
    I would like to ask you (if the issue still persists) for an example.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Grid Width API #91152

    jkapasi
    Participant

    Hello,

    I saw that all the columns are given width in percentage and because of that the grid is auto-resized.

    But is there any API for grid which auto-resizes it based on the container div size?

    Thank You.

    Regards
    Jash

    Grid Width API #91201

    Hristo
    Participant

    Hello Jash,

    You could set dynamic the properties of the Widget – $("#jqxgrid").jqxGrid({ width: '100%', height: '100%' });
    Another approach to fit all columns in the Grid as do not set width property for any column.
    Also, I would like to suggest you review the options of this ‘setcolumnproperty’ property.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.