This project is read-only.

Drag Events / Select Events

Jun 4, 2009 at 6:20 PM
Edited Jun 4, 2009 at 6:53 PM

I need to custom implement the select and drag events:

1) I have rows that spam the whole grid and do not want to select them.

How would you guys recommend solving this?

2) I need to implement a custom drag/drop solution

I can use the mouse down/ mouse move / mouse up events to trigger a drag, but it conflicts with the selection drawing (eg, if I am dragging I do not want to start a selection)

What I want the grid to do, is conform to Windows explorer style dragging / dropping selected. If I click on a cell that is NULL or text "", I want to beging the select box, otherwise, I want to begin my "drag" operation.

An other good approach if I start dragging and the cell does not have focus, it can start the select procedure, however if I click on a cell, then click again to start a drag operation, I do not want the select stuff...

Any suggestions woudl be appreciated.


Jun 9, 2009 at 7:57 PM

Got it. #2 implemented fix. #1 still an issue

Jun 10, 2009 at 7:34 AM

AFAIK, there is an Unselectable model and controller.

Have a look how Header row use these models and controllers to achieve this.

Jun 6, 2010 at 9:19 PM
abirdd wrote:

Got it. #2 implemented fix. #1 still an issue

Can you explain how you solve #2 ?