Alexander Urbanec
Top achievements
Rank 1
Alexander Urbanec
asked on 10 Jul 2010, 12:56 PM
Hello,
I specified a default GroupDescriptor in XAML with a custom DisplayContent which should be shown in the group panel as far as I understood.
The problem is while the designer shows the specified DisplayContent correctly, at runtime the displayed text is the one of the Member Property set for the GroupDescriptor, which results in a bad end user experience.
I hope you can help me with this issue! Thanks,
Alex
I specified a default GroupDescriptor in XAML with a custom DisplayContent which should be shown in the group panel as far as I understood.
The problem is while the designer shows the specified DisplayContent correctly, at runtime the displayed text is the one of the Member Property set for the GroupDescriptor, which results in a bad end user experience.
I hope you can help me with this issue! Thanks,
Alex
6 Answers, 1 is accepted
0
Hello Alexander Urbanec,
I could not reproduce the problem in a sample project. Please find it attached and let me know if I am missing something.
Sincerely yours,
Veskoni
the Telerik team
I could not reproduce the problem in a sample project. Please find it attached and let me know if I am missing something.
Sincerely yours,
Veskoni
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
Alexander Urbanec
Top achievements
Rank 1
answered on 13 Jul 2010, 01:13 PM
Hello,
this is really strange. Here is the XAML I'm using, the scenario is a little more complex but I think it should work that way.
When I launch my app I get group by
Thanks,
Alex
this is really strange. Here is the XAML I'm using, the scenario is a little more complex but I think it should work that way.
<telerik:RadGridView Grid.Column="0" IsReadOnly="True" SelectionMode="Single" AutoGenerateColumns="False" AutoExpandGroups="True" CanUserDeleteRows="False" CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False" CanUserSortColumns="True" GridLinesVisibility="None" AlternationCount="2" RowIndicatorVisibility="Collapsed"> <telerik:RadGridView.GroupDescriptors> <telerik:GroupDescriptor Member="AssignmentType.ShortValue" DisplayContent="Type"/> </telerik:RadGridView.GroupDescriptors> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Width="Auto" Header="Date Start" DataMemberBinding="{Binding Path=DateStart}" DataFormatString="{}{0:d}"/> <telerik:GridViewDataColumn Width="Auto" Header="Date End" DataMemberBinding="{Binding Path=DateEnd}" DataFormatString="{}{0:d}"/> <telerik:GridViewDataColumn Width="Auto" Header="Type" DataMemberBinding="{Binding Path=AssignmentType.ShortValue}" GroupMemberPath="AssignmentType.Value"/> <telerik:CustomGridViewDataColumn Width="*" Header="Text" DataMemberBinding="{Binding Path=Value}"/> </telerik:RadGridView.Columns></telerik:RadGridView>When I launch my app I get group by
AssignmentType.ShortValue in the Group Header. Maybe there is a smarter way to mark a column as default grouping column, one that also recognises the GroupMemberPath setting.Thanks,
Alex
0
Hi Alexander Urbanec,
I admit that this is strange since it is working in the sample app I sent you.
What is the version of the Telerik assemblies in your project?
Can you try to group by
Greetings,
Veskoni
the Telerik team
I admit that this is strange since it is working in the sample app I sent you.
What is the version of the Telerik assemblies in your project?
Can you try to group by
DateStart instead, just for the test:<telerik:RadGridView.GroupDescriptors> <telerik:GroupDescriptor Member="DateStart" DisplayContent="Type"/> </telerik:RadGridView.GroupDescriptors>Greetings,
Veskoni
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
Alexander Urbanec
Top achievements
Rank 1
answered on 13 Jul 2010, 02:38 PM
Hello,
the version I'm using is 2010.1.603.35.
I also experimented with default grouping by other columns (DateStart, Value) with the same result.
I removed all unnecessary code with no effect.
Thanks,
Alex
the version I'm using is 2010.1.603.35.
I also experimented with default grouping by other columns (DateStart, Value) with the same result.
I removed all unnecessary code with no effect.
Thanks,
Alex
0
Hello Alexander Urbanec,
Can you try to reproduce the problem in the test project I sent you?
I cannot tell what could be the reason unless I debug it locally.
Sincerely yours,
Veskoni
the Telerik team
Can you try to reproduce the problem in the test project I sent you?
I cannot tell what could be the reason unless I debug it locally.
Sincerely yours,
Veskoni
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
JJ Loubser
Top achievements
Rank 1
answered on 20 Feb 2012, 03:25 PM
where does type come from is it a struct? can I use a struct for the groupdescriptor?
like
struct province
{
float value;
string type;
}
then we can set the Member to the value and the displaycontent to the type
like this
<telerik:GroupDescriptor Member="Province.value"
SortDirection="Descending"
DisplayContent="Type"
/>
??
like
struct province
{
float value;
string type;
}
then we can set the Member to the value and the displaycontent to the type
like this
<telerik:GroupDescriptor Member="Province.value"
SortDirection="Descending"
DisplayContent="Type"
/>
??