jQWidgets Forums

jQuery UI Widgets Forums Grid Nested Grid

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Nested Grid Posts
  • Nested Grid #13934

    shimmoril
    Participant

    I’m trying to set up a nested grid based on your example here: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/nestedgrids.htm

    I think I’ve got most of it, but all my nested grids are showing up empty. I’ve determined it’s because my filter is returning false, but I’ve checked the data and there’s at least one match. While checking the code I realized that I’m not sure where this ‘orders’ variable is coming from:

    var ordersDataAdapter = new $.jqx.dataAdapter(ordersSource, { autoBind: true });
    orders = ordersDataAdapter.records;
    // create nested grid.

    It doesnt seem to be declared anywhere above, so I’m wondering if it’s somehow related to the parent grid?

    Also, percentage column widths aren’t playing well when having the rowdetails ‘column’ displayed. If my column widths add up to 100%, I get a horizontal scroll bar. If they add up to 96%, I still get a horizontal scrollbar, but it’s greyed out and unusable. If they add up to 95%, there’s a bit of whitespace between the last column and the edge of the grid.

    Nested Grid #13955

    Peter Stoev
    Keymaster

    Hi shimmoril,

    In our sample, the orders dataAdapter is declared and filled with data outside the “initrowdetails” callback. In the callback function, for the specific details Grid, the orders are filtered depending on the specific filter rule and the filtered data set is displayed in the nested Grid.

    Best Regards,
    Peter Stoev

    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.