dojox/grid/DataGrid identifier Unique

3219
1
Jump to solution
04-23-2015 10:26 AM
naveenmandava1
New Contributor II

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.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Naveen,

   Just loop though your data and add a numeric property that you increment on each loop.

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Naveen,

   Just loop though your data and add a numeric property that you increment on each loop.

0 Kudos