Hello,
I'm trying to bind the data to dojox/grid/DataGrid, but there is no unique identifier in my data. Please suggest me how to handle this?
Or How do I create an unique identifier on the fly to my data?
//Create data object to be used in store
var data = {
identifier: "ASSETID", //This field needs to have unique values
label: "ASSETID", //Name field for display. Not pertinent to a grid but may be used elsewhere.
items: items
};
Thanks.
Solved! Go to Solution.
Naveen,
Just loop though your data and add a numeric property that you increment on each loop.
Naveen,
Just loop though your data and add a numeric property that you increment on each loop.