@sangeetaarora21 wrote:
Hi Walter,
I am using Tree Mapper and generating two trees. I have to fetch the values from Database and then shown in the Trees. Suppose, I have Categories on Left showing the name of the categories and Products on the Right showing the names of the products. Currently, I am using Product Name as the Key. Can I give some unique Ids (Product ID) to the Key and add the Product Name as text so that Product Name is displayed to the user but Product ID is for our internal tree and its mapping generation?
I am using like this
var nodeDataArray = [
{ isGroup: true, key: -1, text:"Categories", xy: "0 0" },
{ isGroup: true, key: -2, text: "Products", xy: "0 0" }
];var catKey = { key: CategoryName, group: -1 };
nodeDataArray.push(catKey);var prodKey = { key: ProductName, group: -2 };
nodeDataArray.push(prodKey);Hope you understand my requirement. Can you please suggest how I can achieve the same?
Thanks.
Posts: 4
Participants: 2