Child rows disappear after scrolled out and back into the viewable window

4 posts, 0 answers
  1. Nick
    Nick avatar
    10 posts
    Member since:
    Sep 2010

    Posted 24 Jul 2012 Link to this post

    I am using Telerik datagridview with Silverlight and it contains a list of parent rows that expand and collapse to each show a few child rows. The child rows show up fine when expanded and collapsed without scrolling through the parent rows.  But while the parent rows are still expanded and the child rows are scrolled out of the windows view, when they are scrolled back into the windows view, the child rows disappear. This doesn’t happen all of the time(maybe 50% of the time), and sometimes it doesn’t happen to all of the child rows(only one or a couple).
     
    I don’t know if it is a problem on my end, or Telerik’s end. I am looking for any direction or assistance with this problem. Thank you.
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 25 Jul 2012 Link to this post

    Hi,

    I have tested our online demos but I was not able to reproduce such an issue while scrolling.

    May I ask you to test with the latest assemblies?  If the problem remains, may I ask you how have you defined your hierarchy? Do you use RowDetails or do you use Hierarchy in your project?

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Nick
    Nick avatar
    10 posts
    Member since:
    Sep 2010

    Posted 25 Jul 2012 Link to this post

    Yes, I am using the latest assembilies.

    The format how the Grid is layed out is the following:

     

    <UserControl>

     <StackPanel>

      <StackPanel>

       <telerikDocking:RadDocking>

        <telerikDocking:RadDocking.DocumentHost>

         <telerikDocking:RadSplitContainer>

          <telerikDocking:RadPaneGroup>

           <telerikDocking:RadDocumentPane>

            <Grid>

             <Grid>
                Styles

             </Grid>

             <telerikNavigation:RadTabControl>

              <telerikNavigation:RadTabItem>

               <Grid>

                <telerikBusy:RadBusyIndicator>

                 <telerikDataGrid:RadGridView>
                    <telerikDataGrid:RadGridView.Columns>
                        Parent Columns

                    </telerikDataGrid:RadGridView.Columns>

                   <telerikDataGrid:RadGridView.RowDetailsTemplate>

                    <DataTemplate>

                     <telerikNavigation:RadTabControl>

                      <telerikNavigation:RadTabItem>

                        <telerikDataGrid:RadGridView />
                        <telerikDataGrid:RadGridView.Columns>
                                Child Columns

                        <telerikDataGrid:RadGridView.Columns>

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 26 Jul 2012 Link to this post

    Hi,

     Thank you for the structure you have shared. I have prepared a sample project based on it but I was not able to run it. I got an error that placing a Docking control in a panel that will be measure it with infinity is not allowed. That is why I have remove the containing StackPanel.

    Then I initialized the GridView and its RowDetails but still I am not able to reproduce the problem. Please find my sample attached for a reference.

    Generally to increase the performance of the GridView please try not to place RadGridView in controls/panels which will measure it with infinity. For example, ScrollViewerStackPanel and Grid with Row.Height=Auto or Column.Width=Auto.  
    More on how to increase the performance is described in this help article.  

    All the best,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top