I am creating an application using UltraWinGrid for a WinXP touchpad. I would like to get the scrolling capability in the grid like on an iPad - swipe up to scroll down, swipe down to scroll up. Can I get this capability?
If it's not possible in WinXP, is it possible in WIn7?
okay i see this working in regular grid view but when i switched my grid to cardview.. it didn't work. any ideas?
Hello,
As far as I am aware xamGrid and Silverlight doesn’t support such scrolling yet. If you would like to get more accurate answer about Silverlight you could post your question at the appropriate Silverlight section from our community.
Please let me know if you have any other questions.
Thanks. That worked much better. Very insightful.
For my purposes, I used Scroll(RowScrollAction.LineUp) rather than your ScrollPosition -= (e.Y - OldPos.Y). It seemed to work slightly better in my specific application. The code I used was
If sign < 0 Then UltraGrid1.DisplayLayout.RowScrollRegions(0).Scroll(RowScrollAction.LineUp)Else UltraGrid1.DisplayLayout.RowScrollRegions(0).Scroll(RowScrollAction.LineDown)End If
It's just an alternate way of doing pretty much the same thing.
One last question: Would I have the same problem using the xamGrid Silverlight control. Does that support pixel based scrolling?
Scrolling of UltraGrid is row based and the component does not support pixel based scrolling. This is the reason because of UltraGrid will “jump” at least with one row. I have modified the sample in order to achieve something closer to your requirements.
Please let me know if you have any further questions.
Thanks for your insight. I see what you are getting at.
There are, however, 2 issues:
1) The scroll is in the wrong direction than I wanted. But that is easily solved by changing the += to -=. So that's OK.
2) The more difficult problem is that the scroll is not in sync with the mouse movement. If you MouseDown on a row, and move the mouse just a drop, the data row moves alot. In other words, the row you have the MouseDown on doesn't graphically sync with the mouse movement. Is there a way to keep the two in sync, so that the row you've MouseDowned on stays under the mouse as you move it? That's the way it works on an iPad, and that's the way a user would intuitively expect it to work.
Thanks for any assistance.