:: Forum >>

how to auto scroll?

Hi all-
I working on drag and drop (for headers only) so that our clients can configure where they want the grid headers. )This is design time functionality i.e. a config utility.)

My problem is that if the grid has more columns than visible I can't drag my header/column past the end of the visible grid. I would like to invoke scrolling automatically when I drag to the right, past the end of the visible columns and autoscroll.

I believe I need to invoke .setCurrentColumn programmatically in my drag routine but am not sure. Is there a way to do what I want to do?
Thursday, November 10, 2011
You can scroll the grid using setScrollLeft(x) method
Alex (ActiveWidgets)
Sunday, November 13, 2011
Thanks, Alex-

Here is what I really want to do:

I have a grid of say, 22 columns. The width of the display is approx. 10 columns wide with a horizontal scrollbar. I would like to be able to have my user pick up column header 0 and drag it to, say, column 15, without having to drop the item at 10, scroll the grid manually, then picking up the item again (now at 11) and dropping it again at 15. Is there any way I can invoke horizontal scrolling by detecting dragging to the right, past the end of the visible display?

Wednesday, November 16, 2011
Hi Max,
You can try to do it in a similar way it's done in drag-drop rows sample:
Coud be a bit more complex ( I remember it took me much more time than avobe), but I did it once ( although not sure if it was fully reviewed and buggs-free).
Anyway , interested in purchase this kind of feature ?
( suposing I could locate it, and have time to test it again)
Thursday, November 17, 2011

This topic is archived.

Back to support forum

Forum search