3.2.0

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?
thanks
Max
November 10,
You can scroll the grid using setScrollLeft(x) method
Alex (ActiveWidgets)
November 13,
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?

thanks!
Max
November 16,
Hi Max,
You can try to do it in a similar way it's done in drag-drop rows sample:
/javascript.forum.11225.59/this-example-shows-how-to.html
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)
Thanks
Carlos
November 17,

This topic is archived.

See also:


Back to support forum