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

groupby column header title changes when navigating back to a page

3 Answers 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 27 Apr 2012, 03:34 PM
A minor bug I think. When I group by a column the title of that column is as defined in the header attribute. If I navigate away from the page and back to it, the grid remains as is and continues to be grouped, but the title of the grouped column shown in the group panel changes to the displaymemberpath attribute binding. So for example it changes from 'Assigned To' to 'tblUserDetail.Surname'.

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 01 May 2012, 08:29 AM
Hi Jeremy,

Will it be possible to share a bit more information about your scenario ? Do you customize in a way the group header template ? How do you bind your RadGridView and what is the implementation of your business object ?  Is there anything more specific and customized in RadGridView in your case ?
 

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jeremy
Top achievements
Rank 1
answered on 01 May 2012, 09:45 PM
Hi Maya,

Thanks for your help

The grid resides on a page which loads into a navigation frame, the data is supplied from a domaindatasource , the xaml looks like this
<telerik:RadGridView x:Name="dgdJobPlanSelect" AutoGenerateColumns="false" ItemsSource="{Binding Data}" ActionOnLostFocus="None" IsReadOnly="True" CanUserDeleteRows="False" CanUserInsertRows="False" HorizontalGridLinesBrush="{x:Null}" VerticalGridLinesBrush="{x:Null}" RowDetailsVisibilityMode="VisibleWhenSelected" RowIndicatorVisibility="Collapsed">
                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding JobPlanName}" Header="Description" Width="*" ShowColumnWhenGrouped="False"/>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding tblUserDetail1.tblUserConnection.Surname}" Header="Assigned To" ShowColumnWhenGrouped="False" IsReadOnly="True" Width="Auto" >
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding tblUserDetail1.tblUserConnection.Surname}" />
                                        <TextBlock Text=", " />
                                        <TextBlock Text="{Binding tblUserDetail1.tblUserConnection.FirstName}" />
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate
                                 
                        </telerik:GridViewDataColumn>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding tblUserDetail.tblUserConnection.Surname}" Header="Owner" ShowColumnWhenGrouped="False" IsReadOnly="True" Width="Auto" >
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Horizontal">
                                        <TextBlock Text="{Binding tblUserDetail.tblUserConnection.Surname}" />
                                        <TextBlock Text=", " />
                                        <TextBlock Text="{Binding tblUserDetail.tblUserConnection.FirstName}" />
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>                 
                        </telerik:GridViewDataColumn>
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding tblService.ServiceName}" Header="Service" ShowColumnWhenGrouped="False" IsReadOnly="True" Width="Auto" />
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding tblJobPlanType.JobPlanTypeName}" Header="Status" ShowColumnWhenGrouped="False" IsReadOnly="True" Width="Auto" />
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Converter={StaticResource mySharePlanConverter}}" ShowColumnWhenGrouped="False" Header="Visible To" UniqueName="SharePlan" IsReadOnly="True" Width="Auto" />
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding StartDate, StringFormat=MMM dd yyyy}" Header="Start Date" ShowColumnWhenGrouped="False" IsReadOnly="True" Width="Auto" />
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding EndDate, StringFormat=MMM dd yyyy}" Header="End Date" ShowColumnWhenGrouped="False" IsReadOnly="True" Width="Auto" />
                        <telerik:GridViewDataColumn DataMemberBinding="{Binding PATotal, Converter={StaticResource myTwoDPConverter}}" Header="PAs" ShowColumnWhenGrouped="False" IsReadOnly="True" Width="Auto" />
                        <telerik:GridViewDataColumn Header="Active"  CellTemplate="{StaticResource isCurrentJobPlanTemplate}" ShowColumnWhenGrouped="False" IsReadOnly="True" Width="Auto" />
                             
                    </telerik:RadGridView.Columns>                     
 
                </telerik:RadGridView>

Best Wishes

Jeremy
0
Maya
Telerik team
answered on 06 May 2012, 06:11 PM
Hello Jeremy,

I have tried to reproduce the issue you reported, but still without any success. Could you take a look at the sample attached and let me know whether I am missing something ? How do you create your groups ? Is there anything more specific that I need to do in the sample application ? 

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Maya
Telerik team
Jeremy
Top achievements
Rank 1
Share this question
or