Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by ray on Dec 21, 2009 08:46
open dhtmlx forum
enableBlockSelection

I have enableBlockSelection(true) enabled and when I select rows and perform an event, it does not show that I have any rows selected.

The below errors out.

function moveFilterLeft() {
//Grab all selected values
var ids = flGrid.getSelectedId().split(',');
//For each value selected move to Right Filter selection grid
for (var i = 0; i < ids.length; i++) {
flGrid.moveRow(ids[i], "row_sibling", flGrid2.getSelectedId(), flGrid2);
}
}
Answer posted by dhxSupport on Dec 22, 2009 01:37
You can access selection zone manually and get|set values directly through existing API
The selected area can be accessed as
grid._selectionArea
grid._selectionArea.LeftTopRow
grid._selectionArea.LeftTopCol
grid._selectionArea.RightBottomRow
grid._selectionArea.RightBottomCol
Answer posted by ray on Dec 23, 2009 06:06
I seem to have a problem using both enableBlockSelection(true) and Drag n Drop. When I use enableBlockSelection(true) options and try to drag, it seems that the items are not selected. How do I get this to work correctly?