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

Hierarchical Grid gets white

6 Answers 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Benedikt asked on 10 Jul 2019, 07:19 AM

Hi,

I've a hierarchical RadGridView I populated withtwo Datatables in a Dataset with Data from a sql Table.

With that:
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

I've applied the Material-Theme.

 

In the default theme everything works fine, but with the applied Material theme after a few expansions, the grid suddenly gets white and after scrolling has its data again but at the top there is a random white space suddenly.

 

I'm suddenly tesing with the trials version, but don't think that's tthe reson for the problem.

 

Greetings Benedikt

6 Answers, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 12 Jul 2019, 02:10 PM
Hi Benedikt,

Thank you for the provided images.

Looking at the MergedDictionaries, the Navigation.dll is not merged. My guess here is that is the reason behind this behavior. You can add a reference to the Telerik.Windows.Controls.Navigation.dll and merged it in the Application resources. Check the following code snippet.
<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Give this approach a try and let me know how it goes on your side.

Regards,
Dinko
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
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
answered on 29 Jul 2019, 01:35 PM

Hey Dinko,

Sorry for the late response, I had holidays for 2 weeks.

 

I added your snippet, but sadly the behaviour is still the same.

 

Greetings

Benedikt

0
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
answered on 29 Jul 2019, 02:18 PM

After testing, I can say, that I have the same thing with the Office 2016 Theme...

I now uploaded my VisualStudio project here: https://www.dropbox.com/s/hiuw1m7rn0hmj9s/KEMlogTelerik.zip?dl=0. Caused by the database connection ysou won't really be able to debug it but maybe see a problem in my code.

0
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
answered on 30 Jul 2019, 08:55 AM

I can now say, I have the reason for my problem. Sadly no solution.

If I have a column with HeaderTextWrapping="Wrap" these strange behaviour appears. And also if  the childtemplate has ShowGroupPanel="False".

I could live with the TextWrappping, but the ChildGroupPanel makes the table way too big to work with it...

0
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
answered on 01 Aug 2019, 05:02 AM
Setting GroupRenderMode="Flat" solves the problem.
0
Accepted
Dinko
Telerik team
answered on 01 Aug 2019, 09:45 AM
Hello Benedikt,

I am happy to hear that GroupRenderMode property works for you. If you have any other questions, you can open a new thread with your questions inside.

Regards,
Dinko
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
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Dinko
Telerik team
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or