Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
After "rowUpdate" sorting doesn't retain
posted

I am using igtreeGrid with AngularJS. After "rowupdate" udpated row should be on new sorted place but it's not. Here is a fiddle link

Is there any solution?

Parents
No Data
Reply
  • 18204
    Offline posted

    Hello Shafaq Kazmi,

    Thank you for posting in our forums!

    Thank you for the fiddle.  In order to have the column sorted, you will need to let the grid know to sort the columns.  You can do this by calling the sortColumn method after calling updateRow.  The following code is an example of how to achieve this in your sample:

    var item = $scope.dataSource[4].files[0].files[0];
      var oldName = item.name;
      item.name = "Updated Row";
      $("#igniteGridId").igTreeGridUpdating("updateRow", oldName, item);
      $("#igniteGridId").igTreeGridSorting("sortColumn", 0, "ascending");
    }

    I have modified your jsFiddle and updated it here.  If you need further assistance with this, please let me know and I will be glad to help.

Children