expand row throws error after updating every row in grid with updateRow

Hi,
Please see the error below that occurs when attempting to expand a row after updating the TreeGrid with the following code.

We have a grandparent, parent, child structure in our treegrid - in other words, a 3 dimensional structure. In the code below, we are updating the parent and child for the selected (checked) records.

Pagination or virtualization cannot be used for our requirement.

The error is temporary.  Depending on the size of the grid, after a few seconds to a minute after updating rows with code below, expanding any row works fine.

    this.treeGridEditSettings = {
      allowEditing: true,
      allowAdding: true,
      allowDeleting: true,
      mode: "Row"
    };


  fnIssuer2(issuerPctValuestring) {
    var index = this.treegridpropsedorders.getCheckedRowIndexes()
    let checkedRecords:any=this.treegridpropsedorders.getCheckedRecords();
    for (var i = 0i < index.lengthi++) {
      if (checkedRecords[i]["groupaccountlevel"] == "P") {
        this.treegridpropsedorders.updateRow(index[i], { pct_issuer_display: 2.2feedstatus: "C" });
        var children = checkedRecords[i]
        if (children.hasChildRecords) {
          for (var j = 0j < children.childRecords.lengthj++) {
            let treePrimaryPK = +children.childRecords[j]["groupAcctPK"];
            if (children.childRecords[j]["qty_ordered"] != 0)
              this.treegridpropsedorders.updateRow(treePrimaryPK - 1, { pct_issuer: 2.2typeofchange: "issuer"feedstatus: "C""priority": 1"rebalprice": 3.3heldprioritizedflag: "N" });
            else
              this.treegridpropsedorders.updateRow(treePrimaryPK - 1, { pct_issuer: 2.2typeofchange: "issuer"feedstatus: "C""priority": 1"rebalprice": 3.3heldprioritizedflag: "Y" });
          }
        }
      }
    }
  }








1 Reply 1 reply marked as answer

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team April 7, 2021 04:50 PM UTC

Hi Mark, 

Thanks for contacting Syncfusion Support. 

Query#:- The error is temporary.  Depending on the size of the grid, after a few seconds to a minute after updating rows with code below, expanding any row works fine. 
 
We have checked your query by preparing sample using your code example on button click but we are unable to reproduce the problem at our end. Refer to the sample Link:- 
 

Screenshot:- 
 

We need some more additional details to find the cause of the issue. Share us the following details. 

  1. Complete TreeGrid code example.
  2. Share Video Demo to replicate the issue.
  3. Syncfusion package version details.
  4. If possible replicate the issue in the above sample and revert us back.

Regards, 
Farveen sulthana T 


Marked as answer
Loader.
Up arrow icon