3.2.0

Adding Row Selectors Prevents Row Editing

I use the following code to force my grid to allow edits:

//set whether cells can be edited or not
obj.setCellEditable(true);

This works fine. I need row selector so I add the following:

// enable row selectors
obj.setSelectorVisible(true);
obj.setSelectionMode("multi-row-marker");

Now I have row selectors, but can no longer edit the cells in the grid. If I remove the row selectors, I can again edit the cells. This problem appears in both IE and Firefox.

Any help is most appreciated.
Greg
April 3,
This behavior is 'by design' - cell editing is only possible if the current selection mode allows to select a cell (otherwise how do you select which cell to edit?).

What you need is some kind of hybrid selection mode which allows to select either a cell or a row (or multiple rows).
Alex (ActiveWidgets)
April 4,
Perhaps you can help with my overall objective. My objective is to have data in the grid that the user can simply click and then modify. In addition to this, I want the user to be able to click the row select and then click a DELETE THIS ROW button. I can make each of these functions work individually, but not in combination. Is this possible?
Greg
April 4,
Perhaps use a check box column to handle the deletion status. Your button can then delete all rows where the check box is set.
Anthony
April 6,
How would you handle selecting with keyboard? Or would you remove keyboard navigation completely?
Alex (ActiveWidgets)
April 7,

This topic is archived.

See also:


Back to support forum