ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: ohbayashi on April 10, 2018, 05:35:03 pm

Title: I want to auto increment the id when adding with treemodel
Post by: ohbayashi on April 10, 2018, 05:35:03 pm
When adding a line with tree () of treemodel, I want to use addNodes, but unlike the addRow method, a set of id is necessary.

I want to register even without an id, but is there any way?

document sample.
Code: [Select]
    tree.addNodes( [
        { id: 100, name: "abc", ... },
        ...
    ], tree.getNode(1) );


wanting.
Code: [Select]
    tree.addNodes( [
        { name: "abc", ... },
        ...
    ], tree.getNode(1) );

Or you can add it to node with addRow.
Title: Re: I want to auto increment the id when adding with treemodel
Post by: paramvir on April 10, 2018, 09:57:50 pm
There is no known way to avoid passing id while adding nodes in a treegrid.