:: Forum >>

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
Thursday, April 3, 2008
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)
Friday, April 4, 2008
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
Friday, April 4, 2008
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
Sunday, April 6, 2008
How would you handle selecting with keyboard? Or would you remove keyboard navigation completely?
Alex (ActiveWidgets)
Monday, April 7, 2008

This topic is archived.


Back to support forum

Forum search