groupby column header title changes when navigating back to a page

4 posts, 0 answers
  1. Jeremy
    Jeremy avatar
    11 posts
    Member since:
    Jul 2011

    Posted 27 Apr 2012 Link to this post

    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'.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 01 May 2012 Link to this post

    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 >>

  3. Jeremy
    Jeremy avatar
    11 posts
    Member since:
    Jul 2011

    Posted 01 May 2012 Link to this post

    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
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 May 2012 Link to this post

    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 >>

Back to Top