Login Register

Grid editing problem

I'm having a problem editing a grid with the dojox.grid.editors. When editing the grid the cell will get focus and you can edit the value in the cell and the constraints are applied, after the cell loses focus you cannot edit any cells in that column. The cell will get focus but there is no cursor within the input box and keystrokes are ignored. If you click any of the cells in the other rows of that column, the cell displays the value previously entered, when it loses focus the value is not displayed. Basically, you cannot re-edit a cell in any previously edited column for a given grid instance.

I've added this to the page's header...

dojo.require("dojox.grid._data.dijitEditors");

dojo.declare("dojox.grid.editors.NumberTextBox",
        dojox.grid.editors.Dijit,
        { editorClass: "dijit.form.NumberTextBox" });

The definition in the grid's structure is the following...

...
{       name: '<span style="font-weight : normal">HarvestLength(km)</span>',
        width: '50px',
        cellStyles:"text-align:right;",
        editor: dojox.grid.editors.NumberTextBox,
        formatter: formatNumber,
        constraint: { places: 2, min: 0.00, max: 3.05 }
},
...

If I change it to the 'dojox.grid.editors.Input' editor it works as expected, but obviously without the formatter and constraints being applied.

same problem

In my case I observed the following behaviour:
IE7: initially I can edit any cell. Later occasionally (after sorting, modifying query, refresh() )
FF: initially I can edit a cell. After refresh() the focus will remain on the last edited cell. Therefore no other cell is editable.
I'm using dojox.grid.editors.Dijit as editing widget.
Any ideas what the reason for this problem might be?

Had the same problem

Had the same problem as you guys and changed dojox.grid.editors.Dijit to dojox.grid.editors.Input and now don't have problems with focus any more...

Hope this helps!

Works better but not entirely satisfactory...

Input still shows the same behaviour in IE7
It works well with FF in the beginning but after the first modified query applied (new model + refresh) it won't loose focus after submitting with return.

_data.dijitEditor ?

I got the latest build and found that dojox.grid.editors.Input does no more exist and more generally dojox.grid._data.dijitEditor has disappeared.
Any idea of how to replace them???

Thanks in advance