Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Odd Scrolling

Sort Posts: Previous Next
  •  08-14-2007, 5:28 PM Post no. 9091

    Odd Scrolling

    How can we have the vertical scrolling stop when you get to the bottom of the list? In the Xceed example apps when you get to the end of the list you can keep scrolling until you can only see one item in the grid! We would rather it not do that.

    The other problem (related) is that when you call BringItemIntoView, in some cases, the grid only shows one item in the grid instead of showing as much data in the grid as possible. This makes it look to a common user that there is only one item in the grid and all their data went poof.

    Thanks!
  •  08-15-2007, 9:33 AM Post no. 9092 in reply to 9091

    Re: Odd Scrolling

    This is normal behavior due to virtualization. The only way to disable it would be to display virtualization by changing the grid's ItemPanel to a non-virtualizing one. For example:

    <code>
    <xcdg:DataGridControl.ItemsPanel>
    <ItemsPanelTemplate>
    <StackPanel/>
    </ItemsPanelTemplate>
    </xcdg:DataGridControl.ItemsPanel>
    </code>
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  08-15-2007, 11:54 AM Post no. 9093 in reply to 9092

    Re: Odd Scrolling

    Forgot to mention that if you disable virtualization and you have alot of data in the grid, you will encounter a performance hit.
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  08-15-2007, 12:00 PM Post no. 9094 in reply to 9093

    Re: Odd Scrolling

    Yeah, we want to keep the virtualizing panel. We've worked around the problem by handling ScrollChanged (which itself tricky because we have code that recreates the scroll view periodically). In ScrollChanged we can detect that BringItemIntoView has been called and has put the current item at the top, so we programmatically reset the scrollviewer's VerticalOffset to scroll down a bit to make it look better.
  •  08-15-2007, 12:34 PM Post no. 9095 in reply to 9094

    Re: Odd Scrolling

    An alternative would be present, but only if you can live with fixed row height.

    It's not an easy one, but you could create your own DataGridVirtualizingPanel that works with the assumption that Rows have a "fixed" height (therefore, layout is predictable). This assumption being present, you always know how many items fit in a "page"...

    Marc Laroche
    Software Developer
    Xceed Software Inc.


    I don’t suffer from insanity, I enjoy every minute of it. - Unknown
  •  07-11-2008, 4:09 AM Post no. 13518 in reply to 9095

    Re: Odd Scrolling

    "This assumption being present, you always know how many items fit in a "page"..."

    But surely, if the grid knows it is at the last row (and you know how tall it is), you shouldn't need to scroll any further, and hence leave it at the bottom of the its parent container, rather than scrolling it to the top.

    For example, scrolling by dragging the scrollbar works as expected, only clicking the downarrow or scrolling with mouse roller button scrolls the grid undesirably, hence I think it shouldn't really be too hard for the grid to be fixed?

     

    Is this a MS 'by design' or an XCeed 'by design'?

    We're really enjoying working with the pro grid, but it'd be much more professional if this can be worked around without turning off virtualization.

  •  09-03-2008, 6:33 PM Post no. 14866 in reply to 9092

    Re: Odd Scrolling

    I put int he itemspaneltemplate, but I still got the odd scrolling behavior. I'm running the Pro version of Xceed 3.0, any suggestions?
  •  09-04-2008, 9:01 AM Post no. 14894 in reply to 14866

    Re: Odd Scrolling

    The workaround that Marcus provided is just that: a workaround. Unfortunately, this is a shortcoming of the grid that we understand is annoying and may cause issues for some clients, but we are  working on it and will hopefully have a resolution in an upcoming release.
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  09-04-2008, 1:35 PM Post no. 14915 in reply to 14894

    Re: Odd Scrolling

    Unfourtantly this is a make it or break it feature. I have to have a grid that autoscrolls to the bottom in a smooth fashion as hundreds of new rows are fed in through an observable collection.

     The scrolling behavior seems to be a bug though. I have changed nothing in my code and one day during testing scrolling/populating to the bottom was smooth, at night it was clearing the screen of rows before poulating new rows of information that couldn't fit in the viewport, cuasing a weird clear/populating paging effect, then next day it was smooth again, and broken again this morning, with no code change.

  •  09-04-2008, 4:09 PM Post no. 14925 in reply to 14915

    Re: Odd Scrolling

    I have created a ticket for this issue and a developer will look into it as soon as possible. Thank you for your patience.
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
  •  09-05-2008, 12:45 PM Post no. 14947 in reply to 14925

    Re: Odd Scrolling

    Thanks jenny.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.