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

Nested item fail in gridview?

5 Answers 31 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kenneth Jamieson
Top achievements
Rank 1
Kenneth Jamieson asked on 21 Oct 2009, 11:56 AM
Using the gridview setup below...

        <telerik:RadGridView Grid.Row="1" Name="pagesGridView" telerik:StyleManager.Theme="Vista" DataLoadMode="Synchronous" AutoGenerateColumns="False" CanUserInsertRows="False" CanUserFreezeColumns="False" UseAlternateRowStyle="True" ColumnsWidthMode="Auto" ShowGroupPanel="True" SourceUpdated="pagesGridView_SourceUpdated">  
            <telerik:RadGridView.Columns> 
                <telerik:GridViewDataColumn  x:Name="ParentColumn" HeaderText="Parent"  Width="200" DataMemberBinding="{Binding Path=CmsPageParent.Title}" /> 
                <telerik:GridViewDataColumn  x:Name="StatusColumn" HeaderText="Status"  Width="200" DataMemberBinding="{Binding Path=CmsItemState.Name}" /> 
                <telerik:GridViewDataColumn  x:Name="Title" HeaderText="Name"  Width="*" DataMemberBinding="{Binding Path=Title}" /> 
            </telerik:RadGridView.Columns> 
        </telerik:RadGridView> 

  • The simple column (Title) acts as you would expect, it can be grouped by, sorted and fitered
  • The complex rows (Paren and Status) canot be grouped, sored  filtered.This looks like a bug in the grid
  • If you set the grouping manually, you can group by the parent column, however the grouping is NOT re-parsed when the data updates... this is another serious flaw

Any help?

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Oct 2009, 12:15 PM
Hello Kenneth,

I believe that this is already fixed in our latest internal build. Please try it and let me know about the result.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kenneth Jamieson
Top achievements
Rank 1
answered on 21 Oct 2009, 01:12 PM

Sadly, no, the latest build didn't help at all and waiting till you guys release Q3 - if it is even fixed there - is not really an option.

Any other ideas?

Ken

0
Vlad
Telerik team
answered on 21 Oct 2009, 01:37 PM
Hi Ken,

I've just tried this with our latest build and everything worked fine. You can check the attached project.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Kenneth Jamieson
Top achievements
Rank 1
answered on 21 Oct 2009, 08:06 PM

Your sample app worked, so I suspect it is a problem with your grid being able to correctly handle a nested return from Astoria? I am guessing, but since it CAN pull the data and correctly sence when it has changed but not sort or filter (or updatew the grouping) on those columns that maybe it is unsure of the data type?

Since both nested properties are strings, would the "DataType" property of the column help here? How would you set that?

Frankly I cna work around it all if need be by just rebinding the grid to the data on the SourceUpdated() event but thats just flat out ugly when all I need it to do it notice an update that it ALREADY notices (the calue of the column I am grouping by DOES show the change in the grid, but the groupings themselves never update).

By the way, while I appreciate the silverlight example - have you tried this in WPF?

Ken
0
Kenneth Jamieson
Top achievements
Rank 1
answered on 21 Oct 2009, 10:18 PM
Ok.. as suspected the issue was with theGrid failign to correctly derive the data type fromt he composit membe. Following a lead from this post on that topic fixed me up just fine.

Tags
GridView
Asked by
Kenneth Jamieson
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Kenneth Jamieson
Top achievements
Rank 1
Share this question
or