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

[Solved] Gridview grouping issues across different builds

4 Answers 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Geoff Davis
Top achievements
Rank 1
Geoff Davis asked on 28 Oct 2010, 12:29 AM
I have following issue

I am using telerik Gridview control (which is shown in a pop up xaml within a main window) and I am grouping rows using GroupDescriptors. MY group row panels and sub-row items under them are being messed up after certain steps that involves group row item collapse, expand and scrolling.

Here is the series of steps that I took to fix the problem I am facing

1. I have Telerik Silverlight Controls Q3 2009 SP1. And problem is as mentioned before. Telerik.Windows.Controls.GridView.dll version 2009.3.1208.1030

2. I downloaded the telerik silverlight controls Q1 2010. This fixed the problem of messed up sub-row items but the sub totals seen on group row items were still messing up. Telerik.Windows.Controls.GridView.dll version 2010.1.218.1030

3. I searched telerik website and found out from this thread - http://www.telerik.com/community/forums/silverlight/gridview/grouping-not-working.aspx - that GridView behavior is issue ridden when used in a pop up window. And therefore downloaded the sample project (as provided in thread) and used the dlls in my project. My project worked absolutely fine (apart from some irrelevant issues). Telerik.Windows.Controls.GridView.dll version 2010.1.402.1030

4. Then I decided to download the latest nightly build of Telerik controls at following location - http://www.telerik.com/downloads/nightbuildfiles/mmg/RadControls_for_Silverlight_3_2010_2_1022_DEV.zip - and applied to my project. However, this time the GridView fails to initialize with following error message "unknown attribute Name on element RadGridView". This attribute is my control identifier (x:Name) which is absolutely valid. Telerik.Windows.Controls.GridView.dll version 2010.2.1022.1030

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Oct 2010, 10:17 AM
Hi Geoff Davis,

Please share a bit more information about your application. How do you define the RadGridView and the RadWindow ? Can you reproduce the same issue in the sample project downloadable from the mentioned forum thread ? Any relevant code-snippet would be helpful.
 

Sincerely yours,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Geoff Davis
Top achievements
Rank 1
answered on 28 Oct 2010, 02:02 PM
Markup -
<grid:RadGridView x:Name="RadGridView1" SizeChanged="RadGridView1_SizeChanged"
                          ItemsSource="{Binding BGridItems}"
                          RowIndicatorVisibility="Collapsed"
                          IsFilteringAllowed="False" Grid.Row="2"
                          ShowGroupPanel="False" Background="White"
                          IsReadOnly="True" CanUserSortColumns="True" RowLoaded="RadGridView1_RowLoaded"
                          AutoGenerateColumns="False" CanUserReorderColumns="False"  EnableColumnVirtualization="False"
                          CanUserFreezeColumns="False" VerticalAlignment="Top"
                          CanUserResizeColumns="False"  ShowColumnFooters="True" ShowGroupFooters="False"
                          HorizontalAlignment="Left" AutoExpandGroups="True" >
                    <grid:RadGridView.Columns>
                        <grid:GridViewToggleRowDetailsColumn  Width="30"/>
                        <grid:GridViewDataColumn Header="D" DataMemberBinding="{Binding D}" Width="300" HeaderTextAlignment="Center"/>
                        <grid:GridViewDataColumn Header="E" DataMemberBinding="{Binding E}" Width="80" DataFormatString="{}{0:M/d/yyyy}"  HeaderTextAlignment="Center"/>
                        <grid:GridViewDataColumn Header="F" DataMemberBinding="{Binding F}" Width="80" HeaderTextAlignment="Center"/>
                        <grid:GridViewDataColumn Header="G" DataMemberBinding="{Binding G}" Width="80" HeaderTextAlignment="Center"/>
                        <grid:GridViewDataColumn Header="H" FooterTextAlignment="Right" DataFormatString="{}{0:C2}" DataMemberBinding="{Binding H}" HeaderTextAlignment="Center" TextAlignment="Right" Width="120">
                        <grid:GridViewDataColumn.AggregateFunctions>
                            <data:SumFunction ResultFormatString="{}{0:C2}" SourceField="H"/>
                        </grid:GridViewDataColumn.AggregateFunctions>
                        </grid:GridViewDataColumn>
                        <grid:GridViewDataColumn Header="I" FooterTextAlignment="Right" DataFormatString="{}{0:C2}" DataMemberBinding="{Binding I}" HeaderTextAlignment="Center" TextAlignment="Right" Width="120">
                        <grid:GridViewDataColumn.AggregateFunctions>
                            <data:SumFunction ResultFormatString="{}{0:C2}" SourceField="I"/>
                        </grid:GridViewDataColumn.AggregateFunctions>
                        </grid:GridViewDataColumn>
</grid:RadGridView.Columns>
 
Code behind -
Dim lGrouping As New GroupDescriptor
lGrouping.Member = "L"
Dim agg As New SumFunction
agg.Caption = "Total H: "
agg.SourceField = "H"
agg.ResultFormatString = "{0:C2}"
lGrouping.AggregateFunctions.Add(agg)
RadGridView1.GroupDescriptors.Add(lGrouping)

The lines of code above are called whenever i need to re-load the grid. There are multiple different group descriptors and therefore they are loaded dynamically.

I didn't post the code first thinking there might be already known pattern to this issue. Does the code work help?
0
Geoff Davis
Top achievements
Rank 1
answered on 01 Nov 2010, 03:56 PM
does the posting - "Known Issues and Breaking Changes - RadGridView" - concerns my issue?
0
Maya
Telerik team
answered on 03 Nov 2010, 11:22 AM
Hello Geoff Davis,

We did have such a bug with our Q3 2009 version. However, it has been fixed since the Q1 2010 release. So, I would definitely recommend to you to upgrade to some of our latest versions. Thus, you will be able to benefit from all the new features included and fixed bugs.
 

Best wishes,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Geoff Davis
Top achievements
Rank 1
Answers by
Maya
Telerik team
Geoff Davis
Top achievements
Rank 1
Share this question
or