Infinite Loop/High Cpu due to infinite refresh

Given a datatable that has a subrow with subRowHeight set to auto. My table also has some columns that have adjust : “data”. Then if:

  1. The datatable is in inside a multi view
  2. The data table is not the active view.

The datatable refresh gets called repeatedly causing an infinite loop

I am desperately looking for a fix or workaround.

The sample code below reproduces the problem.

webix.ui(
  {
    view: "multiview",
    cells: [
    {},
     {
      id: "testlist",
      view: "datatable",
      select: true,
      navigation: true,
      tooltip: false,
      resizeColumn: true,
      subrow: function (obj) {
        if (obj.Error.length > 0) {
          return "<div class='testinlineerror'>" + obj.Error + "</div>";
        }
        return "";
                },
  subRowHeight: "auto",
  columns: [ 
    { id: "index", header: "", width: 50, sort: "int" },
    { id: "Name", header: "ID", template: " {common.subrow()}&nbsp;&nbsp;#Name#", width: 320, sort: "int" },
    {
      id: "DisplayNameLong",
      header: "Name",
      adjust: "data",
      width: 300,
      css: "testname",
      sort: "string",
      template: function (obj) {
        return obj.DisplayNameLong
      }
    }
  ],
  data:[
    { DisplayNameLong:"a", index:"b", Name:"c", Error:"Test me" },
    { DisplayNameLong:"a", index:"b", Name:"c", Error:"Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me " },
    { DisplayNameLong:"a", index:"b", Name:"c", Error:"Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me Test me " }
  ]
}]
  }).show();

I can confirm the issue, it will be fixed soon. Thanks for reporting!

Dear Listopad, I am encountering a similar issue. The template Function gets repeated endlessly. Do you know a fix?