jQuery UI Widgets Forums Grid Rowdetails data doesn't refresh

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Rowdetails data doesn't refresh #69045

    nitinayir8
    Participant

    Hi Admin,

    When we enable rowdetails for grid and try to sort(server side, client side works fine) a column, rowdetails data of current row show previously opened rowdetails data.
    Steps to reproduce:
    1) Open a grid with rowdetails enabled
    2) Expand first row rowdetail, then sort(server side) any column
    3) Now check the data pertaining to expanded row rowdetails

    Can you please look into this.

    Thanks,
    Nitin

    Rowdetails data doesn't refresh #69125

    Dimitar
    Participant

    Hi Nitin,

    This is a normal behaviour when sorting is done server-side. As a workaround, you can store the row details’ jQuery selections in initrowdetails in an array and access and update these as necessary whenever you sort the grid (on bindingcomplete), i.e.:

    var rowDetails = [];
    
    var initrowdetails = function(index, parentElement, gridElement, datarecord) {
        var details = $($(parentElement).children()[0]);
        rowDetails.push({
            index: index,
            element: details
        });
        details.html("Details: " + index);
    }

    Best Regards,
    Dimitar

    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.