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

Child Heirarchy - Blank Rows When Sorting

3 Answers 6 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kieron
Top achievements
Rank 1
Kieron asked on 02 Aug 2019, 07:17 AM

I have a child gridview within another one - but we seem to be running into a problem when the user sorts on the child gridview.  Basically this only seems to happen when there is a certain amount of records within the child gridview (25+), but some of the rows go completely blank and do not render out the information.  It seems to be random rows each time.

 

Just wondering if anyone has any ideas on this - I can post code if required, but have added screenshots of it happening:

 

https://i.ibb.co/5kLdj0T/Telerik-Issue-No-Sort.png - this displays the grid without the issue (no sorting)
https://i.ibb.co/MMf11MN/Telerik-Issue-Sort.png - this displays the grid with sorting (see blank rows)

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 05 Aug 2019, 12:27 PM

Hello Kieron,

Such issues can appear in some situations when using the default GroupRenderMode (Nested) of RadGridView. Can you try setting the GroupRenderMode property to Flat and see if the issue still exists. Also, you can check if there is a direct setting of properties of the GridViewRow elements somewhere in code. For example:

GridViewRow row = GetRowSomehow();
row.Visibility = Visibility.Collpased; // or similar

If so, please avoid direct settings of GridViewRow properties. Instead use the RowStyle property of RadGridView and data bind any properties you want.

If this doesn't help you can open a new support ticket from your telerik.com account and share a runnable project that reproduces the issue.

Regards, Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Kieron
Top achievements
Rank 1
answered on 06 Aug 2019, 06:50 AM

Hi, 

Thanks for your reply Martin, I checked GroupRenderMode on the grid - it was already set to "Flat"

Also we don't directly set anything on the GridViewRow element.  

The issue only seems to be shown when there are lots of records (25+) within the child grid and the user tries to Sort - unless our user raises this as a priority to get fixed, I may not get time to log a support ticket, but if there is anything you can think I could try - I'm happy to try some other potential fixes.

0
Martin Ivanov
Telerik team
answered on 06 Aug 2019, 03:05 PM

Hello Kieron,

There are two more things that you can try.

  • Upgrade to the latest version of Telerik UI for WPF and test if the issue is resolved there.
  • Make sure that the ItemsSource of the gridview control doesn't contain the same instance more than once. If you have the same object added on two places in the gridview, issues may occur.

Regards, Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Kieron
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Kieron
Top achievements
Rank 1
Share this question
or