jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • Olga
    Participant

    Hello!

    I used your component jqxtreeGrid. My task is add multiple rows in table with hierarhy. Hierarhy contains 12500 records.
    I tried do so:
    var args = event.args
    , row = args.row
    , rowKey = args.key
    , sMasterRowData = ars.util.json.rowToString(context.masterrowdata);
    var sRowData = ars.util.json.rowToString(row);
    apex.server.process(“XX_AJAX_PROCESS”, {x01: ‘rowExpand’,
    x02: context.reportcode, x03: sRowData,
    x04: context.masterreportcode, x05: sMasterRowData
    }
    , {dataType: “json”,
    async: false,
    success: function (pData) {
    if (pData === null)
    return;
    ars.jqx.util.showStatus(pData.respStatus);
    for (var x = 0; x < pData.respBody.length; x++) {
    if (pData.respBody[x][“row_expand_ajax”].toUpperCase() !== “X”) {
    ars.util.log(“[” + pfx + “treeGrid.rowExpand child.name=”+pData.respBody[x][“name”]+”]”, pData.respBody[x][“_ID”]);
    treeGrid.jqxTreeGrid(“addRow”, pData.respBody[x][“_ID”], pData.respBody[x], “last”, pData.respBody[x][“_PARENTID”]);
    }
    }
    }
    });
    It works, but very slowly for root node that contains 12500 records. Yes, calling of treeGrid.jqxTreeGrid(“addRow”… working quickly for hierarhy with 800 records.
    Then I tried so:
    var args = event.args
    , row = args.row
    , rowKey = args.key
    , sMasterRowData = ars.util.json.rowToString(context.masterrowdata);
    var sRowData = ars.util.json.rowToString(row);
    var childrenUidArrayAdd = new Array();
    var childrenDataArrayAdd = new Array();
    var parentUidArrayAdd = new Array();
    apex.server.process(“XX_AJAX_PROCESS”, {x01: ‘rowExpand’,
    x02: context.reportcode, x03: sRowData,
    x04: context.masterreportcode, x05: sMasterRowData
    }
    , {dataType: “json”,
    async: false,
    success: function (pData) {
    if (pData === null)
    return;
    ars.jqx.util.showStatus(pData.respStatus);
    for (var x = 0; x < pData.respBody.length; x++) {
    if (pData.respBody[x][“row_expand_ajax”].toUpperCase() !== “X”) {
    ars.util.log(“[” + pfx + “treeGrid.rowExpand child.name=”+pData.respBody[x][“name”]+”]”, pData.respBody[x][“_ID”]);
    childrenUidArrayAdd.push(pData.respBody[x][“_ID”]);
    childrenDataArrayAdd.push(pData.respBody[x]);
    parentUidArrayAdd.push(pData.respBody[x][“_PARENTID”]);
    }
    }
    treeGrid.jqxTreeGrid(“addRow”, childrenUidArrayAdd, childrenDataArrayAdd, “last”, parentUidArrayAdd);
    }
    });

    Calling treeGrid.jqxTreeGrid(“addRow”, childrenUidArrayAdd, childrenDataArrayAdd, “last”, parentUidArrayAdd)
    dont add child nodes under their parents, but dont give errors in console (snapshot appliing).
    If I calling treeGrid.jqxTreeGrid(“addRow”… without fifth parameter parentUidArrayAdd
    (treeGrid.jqxTreeGrid(“addRow”, childrenUidArrayAdd, childrenDataArrayAdd, “last”), then it works, nodes added directly treeGrid, but not hierarhy.
    But I need add hierarhy rows as array of children nodes added under array of parent records.

    Please help me! Add capability in calling of treeGrid.jqxTreeGrid(“addRow” with array of parent UIDs in fifth parameter.

Viewing 1 post (of 1 total)