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
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
0
Hello Steve,
Vanya Pavlova
Telerik
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!
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 >>
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?
<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
Hi Steve,
I am attaching you the updated project for further reference.
Regards,
Vanya Pavlova
Telerik
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 >>
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
Hi Steve,
Vanya Pavlova
Telerik
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!
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 >>
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 >>