Select to view content in your preferred language

dojo DataGrid is not working,

926
3
05-29-2014 06:30 AM
EdibertoAlves1
Deactivated User
Hi,

I am building a web application and my datagrid (creating programmatically) is not working.
Below the link where is my code piece.

JSFiddle Link

Please! How do I do this code to work ?

Thanks.
0 Kudos
3 Replies
BenFousek
Deactivated User
0 Kudos
EdibertoAlves1
Deactivated User
Consider moving to dgrid. It's the replacement for dojox/grid.

http://dojofoundation.org/packages/dgrid/

https://github.com/sitepen/dgrid/wiki

https://github.com/SitePen/dgrid



Hi Ben,

I am a newbie to implement arcgis js. Unfortunately, I didn´t get implement the dgrid.
I don´t know that I am doing wrong.
Below I wrote the code piece. I´ve an array kind of columns. My idea is after the implement of the columns, insert the data from "store" variable.

window.grid = new DataGrid({ bufferRows: Infinity }, "gridResultsDiv");

                // layoutFields is the array of the columns
                for (var i = 0; i < layoutFields.length; i++) {
                    var newColumn = [{ field: layoutFields.field, name: layoutFields.name, width: layoutFields.width }];

                    grid.set("columns", newColumn);
                   
                }

                window.grid.set("store", store);
                window.grid.renderArray(data);

Thanks.
0 Kudos
EdibertoAlves1
Deactivated User
Below, the link that I implemented the dgrid:

http://jsfiddle.net/edibertoalves/F9f8Z/
0 Kudos