3

I am looking to get dojo datagrid appear by default in edit mode. How can this be accomplished?

Or Can this invoked programmatically outside of grid?

Ashish Rajan
  • 1,202
  • 5
  • 15
  • 27

2 Answers2

0

Just add this to the Grid:

editable = true;

You should also take a look at: http://dojotoolkit.org/api/1.9/dojox/grid/DataGrid

ray
  • 148
  • 3
  • 15
  • 1
    That would only make it editable on single or double click, I need it by default in edit mode i.e. when grid loads it should be text boxes not just as labels. Anyways I found solution to it, in layout with each cell(or one you want to be in edit mode) define alwaysEditing:true. – Ashish Rajan Jun 07 '13 at 12:16
0

while in layout structure i'm declaring this

gridStructure = [{
    defaultCell: { ..., editable: true}
    , cells:[ ...,
        {field: "COLUMNx", name: "Column X"}
    ]
}];

defaultCell get the same parameter as cells