This is a migrated thread and some comments may be shown as answers.

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

3 Answers 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 24 Jul 2012, 03:58 PM
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.

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 25 Jul 2012, 08:15 AM
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.

0
Nick
Top achievements
Rank 1
answered on 25 Jul 2012, 04:42 PM
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>

0
Dimitrina
Telerik team
answered on 26 Jul 2012, 07:26 AM
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.

Tags
GridView
Asked by
Nick
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Nick
Top achievements
Rank 1
Share this question
or