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

ScrollMode=Deferred + Grouped By fails

10 Answers 139 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 09 Mar 2011, 07:45 PM

Yes, I copied and pasted the scrollmode demo code into my code and it almost worked!  Except I have the columns grouped by, when they are grouped by the deferred scrolling doesn't work in my application in that it does not scroll to the place you want.  When I remove grouped-by the deferred scrolling behaves as you would expect.

10 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 11 Mar 2011, 02:02 PM
Hello David,

Thank you for your feedback!
We are aware of this issue and it is in our ToDo list for one of our next releases. 

Please excuse us for any inconvenience caused.
 
Greetings,
Yordanka
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Yordanka
Telerik team
answered on 14 Mar 2011, 11:29 AM
Hello David,

We fixed the problem and the fix will be part of our upcoming Q1 2011 official release which is expected this week.
 
All the best,
Yordanka
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Paul Grothe
Top achievements
Rank 1
answered on 16 Aug 2011, 07:47 PM
This is still broken! If I set the ScrollMode="Deferered" and have the grid grouped, it only retrieves the value to put in the template once and then quits. I even tried using a custom ScrollPositionIndicatorTemplate:
<telerik:RadGridView.ScrollPositionIndicatorTemplate>
    <DataTemplate>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <TextBlock>
                <TextBlock.Text>
                    <Binding Path="Project_Orig.Client_ProjectID" StringFormat="Original Key ID: {0}" Mode="OneWay" />
                </TextBlock.Text>
            </TextBlock>
        </Grid>
    </DataTemplate>
</telerik:RadGridView.ScrollPositionIndicatorTemplate>
It retrieves the bound path correctly once and then stops. I put a dummy converter on the binding and the Convert method gets called only once as I scroll up and down.
0
Yordanka
Telerik team
answered on 22 Aug 2011, 12:52 PM
Hi Paul Grothe,

I tested the scenario with grouped grid and ScrollMode="Deferred" and everything works fine. Can you try the latest binaries and let me know if you still experience the problem? 
 
All the best,
Yordanka
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Paul Grothe
Top achievements
Rank 1
answered on 23 Aug 2011, 02:43 PM
Yes, I'm on RadControls for WPF v.2011.2.712.35. See this video and you will see the behavior I'm talking about:
Scrolling While Grouping
0
Yordanka
Telerik team
answered on 23 Aug 2011, 03:54 PM
Hello Paul Grothe,

Thank you for the video. 
It helps us to understand the issue you are reporting. However, this is expected behavior in grouped scenario. When the grid is not grouped the ScrollPositionIndicator content is the item itself. In the case with grouped grid - it is the group key.
 
Kind regards,
Yordanka
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Paul Grothe
Top achievements
Rank 1
answered on 23 Aug 2011, 08:17 PM
But it's not showing the group key, the grid is grouped on status, I've got a ScrollPositionIndicatorTemplate defined which tells it to show the project id:
<telerik:RadGridView.ScrollPositionIndicatorTemplate>
    <DataTemplate>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <TextBlock>
                <TextBlock.Text>
                    <Binding Path="Project_Orig.Client_ProjectID" StringFormat="Original Key ID: {0}" Mode="OneWay" />
                </TextBlock.Text>
            </TextBlock>
        </Grid>
    </DataTemplate>
</telerik:RadGridView.ScrollPositionIndicatorTemplate>
0
Yordanka
Telerik team
answered on 26 Aug 2011, 02:48 PM
Hello Paul Grothe,

The ScrollPositionIndicator shows the OriginalKeyId because of the TextBlock binding. However, while the grid is grouped, the indicator content will be the OriginalKeyId of the first item for each group. You cannot expect scroll indicator content to change for each separate item in grouped scenario. That's why it seems that only one item from a group is scrolled. In grouped grid the ScrollPositionIndicator iterates the groups, not the items.

Kind regards,
Yordanka
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Paul Grothe
Top achievements
Rank 1
answered on 29 Aug 2011, 09:52 PM
I think this is very counter intuitive that it doesn't show the items when grouped but does show the items when it's not grouped. The whole point of grouping is that you have a set of a few groups, each containing many items, to cleanly and quickly segregate the records. So there should always be a handful or two of groups each containing N records. When when we're scrolling down a large list of records, we aren't trying to find a group, we're trying to find a record.
0
Jay
Top achievements
Rank 1
answered on 13 Feb 2012, 05:33 PM
Could you post an example of how to use the ScrollPositionIndicatorTemplate with grouping?  
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Paul Grothe
Top achievements
Rank 1
Jay
Top achievements
Rank 1
Share this question
or