jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGrid to fill a splitter content?

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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • jqxGrid to fill a splitter content? #29459

    realtek
    Participant

    Hi,

    I would like the jqxGrid to fill the content of a splitter by 100% height and width.

    I cannot see where I can set this and after running chrome developer tools I can see it seems to have a fixed height of 400 and width of 600?

    Here is the code I found in chrome:

    <div id="jqxgrid" role="grid" align="left" class="jqx-grid jqx-grid-web jqx-reset jqx-reset-web jqx-rc-all jqx-rc-all-web jqx-widget jqx-widget-web jqx-widget-content jqx-widget-content-web jqx-disableselect" style="width: 600px; height: 400px;">

    Does anyone know how and where I can set this? I tried changing it with css but no luck!

    Thanks

    jqxGrid to fill a splitter content? #29462

    realtek
    Participant

    Sorry, I was looking in the wrong page!

    Here is where I set the height and width but it won’t fill

           // Create jqxGrid
    $("#jqxgrid").jqxGrid(
    {
    width: '100%',
    height: '100%',
    source: dataAdapter,
    groupable: true,
    theme: theme,
    pageable: true,
    columns: [
    { text: 'Group Name', datafield: 'GroupName', width: 250 }
    ]
    });

    The code I posted above is what the HTML returns from the browser.

    Thanks

    jqxGrid to fill a splitter content? #29464

    Peter Stoev
    Keymaster

    Hi realtek,

    There’s already such sample – http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxsplitter/integration-with-jqxgrid.htm?arctic

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqxGrid to fill a splitter content? #29466

    realtek
    Participant

    Hi Peter,

    That example doesn’t fill the splitter by 100% for the Grid, it seems to be larger?

    I followed this example: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/autosize.htm

    All parent tags have the height and width specified, including html, body and the content section for the tab but it still refuses to go to 100%.

    I’m not sure what I am missing?

    jqxGrid to fill a splitter content? #29467

    Peter Stoev
    Keymaster

    Hi realtek,

    In the sample, the Grid fits to the Splitter’s Panel as that is what the example demonstrates. The Splitter is with Fixed Size, the Grid is with Fluid Size.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqxGrid to fill a splitter content? #29551

    realtek
    Participant

    Hi Peter,

    Thank you, I noticed a syntax error in the height and width where I accidentally put two single quotes around the percentage values.

    Removing them resolved the issue!

    Thank you

    jqxGrid to fill a splitter content? #65787

    LeeW
    Participant

    Hi Peter,

    Can we have an example with fluid splitter height, i.e. 100%?

    I have the issue where I have a DIV + GRID stacked on each size of the splitter.

    The grid horizontal scrollbar is too low – only way I could get them to show is height of grid at 95%.

    Thanks,

    Lee

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

You must be logged in to reply to this topic.