jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Drill Down Selection

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  dchauhan 11 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid Drill Down Selection #54276

    dchauhan
    Participant

    I have the following code below. For example, on the first iteration i have 10 rows. I select one row and it goes back to the server to drill down and get more data. When the data comes back, I cannot select the first row. All the other rows i am able to select and drill down further. What am i missing?

    $(“#TableDetailsGrid”).jqxGrid({
    width: QueryListTableWindowDataGridWidth,
    height: QueryListTableWindowDataGridHeight,
    source: tableDataSourceAdapter,
    theme: websiteTheme,
    sortable: true,
    filterable: true,
    columnsheight: 40,
    autoshowfiltericon: true,
    altrows: true,
    columns: tableColumnDataJson,
    groupable: true
    });
    $(“#TableDetailsGrid”).on(‘rowselect’, function(event) {
    var datarow = $(“#TableDetailsGrid”).jqxGrid(‘getrowdata’, row);
    var selectedValue = getValueFromJsonString(datarow,selectedColumnDesc);
    refreshGrid();
    });

    Grid Drill Down Selection #54277

    Peter Stoev
    Keymaster

    Hi dchauhan,

    To refresh the Grid’s data, create a new dataAdapter instance and set the Grid’s source property to it.

    Best Regards,
    Peter Stoev

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

    Grid Drill Down Selection #54284

    dchauhan
    Participant

    My data is dynamic and i am setting the headers based on the new data. So on the first go i may have Book Title and then in the drill down it can be a different title. I need the whole structure to change based on the data

    Grid Drill Down Selection #54286

    dchauhan
    Participant

    Nevermind i figured it out. Thanks. I had to change the datasource as well.

    Thanks!

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

You must be logged in to reply to this topic.