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

Re: Slow Performance

  •  04-23-2008, 7:51 AM

    Re: Slow Performance

    Hey Ralph,

       10 columns is definetelly not a problematic amount of columns ( I was thinking more in the range of 50-100 columns ).

       So after your reply, I took a deeper look at your Page XAML and noticed that you placed the DataGridControl inside a stack panel.

       The problem with this is that StackPanel will measure its children with no constraint, meaning that they will take as much space as they want.

       This causes the grid to stretch so that all its elements are visible, which explains the long loading time.

       I suggest placing the DataGridControl in a container that does not measure its children with no constraint, such as a DockPanel, to enable UI Virtualization:

        <DockPanel>
            <Label DockPanel.Dock="Top">Page 1</Label>
            <Label DockPanel.Dock="Top">
                <Hyperlink NavigateUri="Page2.xaml">Go To Page2</Hyperlink>
            </Label>
            <xceed:DataGridControl Name="MyGrid"></xceed:DataGridControl>       
        </DockPanel>

    Marc Laroche
    Software Developer
    Xceed Software Inc.


    I don’t suffer from insanity, I enjoy every minute of it. - Unknown
    Filed under:
View Complete Thread
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.