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

Programmatic grouping and rendering issue

9 Answers 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Vic
Top achievements
Rank 1
Iron
Vic asked on 05 Aug 2012, 02:16 PM
Hello,
I've encountered a small bug with gridview rendering when using programmatic grouping.  I've got a gridview that does not display the group panel.  Instead, the user is given the option to group by a single predefined column by clicking a checkbox.  The handlers for the checkbox contain the following simple code:
private void cbxGroupByRegion_Checked(object sender, RoutedEventArgs e)
{
    RadGridView grdView = this.MyGrid;
    
    grdView.GridLinesVisibility = GridLinesVisibility.None;
    grdView.GroupDescriptors.Add(new ColumnGroupDescriptor()
    {
        Column = grdView.Columns["Region"],
        SortDirection = ListSortDirection.Ascending
    });
    grdView.ExpandAllGroups();
}
 
private void cbxGroupByRegion_Unchecked(object sender, RoutedEventArgs e)
{
    RadGridView grdView = this.MyGrid;
     
    grdView.GridLinesVisibility = GridLinesVisibility.Horizontal;
    grdView.GroupDescriptors.Clear();
}

The first time the grid is loaded, it is grouped by default and all rows display correctly.  However, on subsequent groupings, i.e., when unchecking then re-checking the checkbox, the gridview is only partly-filled with rows leaving a blank space at the bottom.  Once the user starts to scroll, the remaining rows suddenly appear.  Has anyone else encountered this?

Thanks..



9 Answers, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 06 Aug 2012, 11:30 AM
Hello Vivian,

Could you confirm version of the Telerik controls you are using? Is this our latest official version - Q2 2012 SP1?
 
All the best,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Vic
Top achievements
Rank 1
Iron
answered on 06 Aug 2012, 01:35 PM
Hi Yordanka,

Yes, that's right.  I'm using 2012.2.725.40.

Thanks..
0
Yordanka
Telerik team
answered on 06 Aug 2012, 04:13 PM
Hello Vivian,

I've tried to reproduce the problem with our latest version and I was not able to. Could you check my test project and modify it in order to demonstrate the issue?
We recently addressed similar problems and we will check your particular scenario with latest fixes.
 
Greetings,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Vic
Top achievements
Rank 1
Iron
answered on 06 Aug 2012, 07:58 PM
Yordanka,
Using your test project I was able to isolate the problem once I added the following two styles to Window.Resources (for the purpose of hiding the row indicator column when grouped):
<Style TargetType="telerik:GridViewIndentCell">
<Setter Property="Visibility" Value="Collapsed"/>
</Style>
<Style TargetType="telerik:GridViewHeaderIndentCell">
<Setter Property="Visibility" Value="Collapsed"/>
</Style>

Let me know if you'd like me to open a support ticket since I can't attach the project here.

I appreciate your help..

[EDIT] Please note that in this particular project, I had to maximize the window to notice the problem.
0
Yordanka
Telerik team
answered on 07 Aug 2012, 11:59 AM
Hello Vivian,

Thank you for the details.

We were able to reproduce the problem and we are working on the task for resolving it. Unfortunately, I cannot commit to a specific date when it will be finished.

I've updated your Telerik points.
 
Greetings,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Vic
Top achievements
Rank 1
Iron
answered on 07 Aug 2012, 01:23 PM
Thanks, Yordanka; you've been very helpful.
What's the best way for me to keep tabs on this so as to know when a fix is available?
0
Yordanka
Telerik team
answered on 07 Aug 2012, 02:57 PM
Hello Vivian,

Excuse me for the missing PITS item link. Here it is. You may track its status and progress.
 
Greetings,
Yordanka
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michel
Top achievements
Rank 1
Iron
answered on 28 Jul 2017, 02:48 AM

Hello,

I've spent so much time searching for this. I am having the exact same problem as described in this thread and I have the exact same styles to hide the GridViewIndentCell and GridViewHeaderIndentCell. Could somebody please direct me to a solution ?

 

Thanks!

0
Dilyan Traykov
Telerik team
answered on 31 Jul 2017, 04:15 PM
Hello Michel,

I'm attaching a modified version of the project my colleague provided in one of the previous replies. Using the latest version of the controls, everything seems to be working as expected at my end.

Could you please have a look and let me know how I can modify this project to replicate the issue you're getting at your end? If you do not find this possible, please open a new support ticket and send over a project of your own so that I can further assist you.

I'm looking forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Vic
Top achievements
Rank 1
Iron
Answers by
Yordanka
Telerik team
Vic
Top achievements
Rank 1
Iron
Michel
Top achievements
Rank 1
Iron
Dilyan Traykov
Telerik team
Share this question
or