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

Grid Lines not visible if lightweight templates used

5 Answers 163 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 11 Nov 2013, 01:00 AM
Hi,

We are using the RadGridView in our project and we have also made use of the lightweight templates to try and improve the slow load times of the grid. However, after implementing the lightweight templates we appear to have lost the gridlines. Is there anyway to get the gridlines back when using the templates?

Thanks

5 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 11 Nov 2013, 07:50 AM
Hello Steve,

 

Which Telerik theme do you need to use? Since the grid lines are determined by the cell and the row, you should merge the core (core/validation) styles for these elements.  
I am attaching you small sample project with core styles against Office_Black theme. 
Hope this helps! 



Regards,
Vanya Pavlova
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Steve
Top achievements
Rank 1
answered on 11 Nov 2013, 09:44 AM
We use the Windows 8 theme defined in Telerik.Windows.Themes.Window8.dll and the style is defined in the grid as follows...

<ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <common:SharedResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>
                <common:SharedResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/>
                <common:SharedResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <common:SharedResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <commonConverters:BooleanToVisibilityConverter x:Key="booleanToVisibilityConverter" TrueValue="Visible" FalseValue="Collapsed" />
            <commonConverters:OrOperatorMultiConverter x:Key="orOperatorMultiConverter"/>
            <Style TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowCoreValidationStyle}"/>
            <Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellCoreValidationStyle}"/>
        </ResourceDictionary>

Please could you elaborate further on which part of the theme you amended?

0
Vanya Pavlova
Telerik team
answered on 11 Nov 2013, 11:18 AM
Hi Steve,

 

Thank you for getting back to us! RadGridView's gridlines are turned off by default in Windows8 theme. 
You may show it through direct setting of GridLinesVisibility property of RadGridView to True:

<telerik:RadGridView GridLinesVisibility="Both" ...../>


I am attaching you the updated project for further reference. 

Regards,
Vanya Pavlova
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Steve
Top achievements
Rank 1
answered on 11 Nov 2013, 12:19 PM
Thanks tracked down the problem to a style that had been set on a usercontrol which was overriding the gridlines.
0
Vanya Pavlova
Telerik team
answered on 11 Nov 2013, 01:13 PM
Hi Steve,

 

We are glad to hear that you were able to resolve the issue by your side. 
If you encounter any other problems do not hesitate to contact us!
Have a great day!



Regards,
Vanya Pavlova
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Steve
Top achievements
Rank 1
Share this question
or