Articles in this section
Category / Section

How to update the selected record in Treegrid

1 min read

TreeGrid provides the support to update the record values dynamically, this can be done by using updateRecordByIndex method. To use this method, we have to pass the record index and modified record object as an argument.

JS

<script type="text/javascript">
   $("#ButtonContainer").click(function () {
          var treegridObj = $("#TreeGridContainer").data("ejTreeGrid");
          var index = 2;
          var data = { taskID: 32, taskName: "Updatedrow", progress: 60, startDate: "02/29/2017", endDate: "03/08/2017" };
          treegridObj.updateRecordByIndex(index, data);
       });
</script>

A simple sample to update the record dynamically in TreeGrid is available here

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied