I am trying to implement the dojo DataGrid component.
I have a BigDecimal[][] object that I would like to use as the store.
I am just not sure what store to use.
I thought the CsvStore would work but it failed to load any data.
I could use the JsonRestStore but my grid only needs to be loaded initially and I would have to go back to my service class and format my current BigDecimal[][] object into some kind of List<SomeNewObject> object.
Any ideas would be much appreciated.
Thanks
I think a
dojo.data.ItemFileReadStoreis OK for you. Suppose your BigDecimal[][] looks like:You can create a
dojo.data.ItemFileReadStoreusing: