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

[Solved] how to change theme of grid view

3 Answers 341 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
pranav
Top achievements
Rank 1
pranav asked on 19 Feb 2010, 09:25 AM
how should i change the theme for telerik silver light grid view control?
i have included all the themes dll in the project reference..
how should i change the theme???

thnx
pranav

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Feb 2010, 09:31 AM
Hello pranav,

You can set for example  telerik:Theming.Theme="Summer" for the grid - please check the project in this post for more info.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
pranav
Top achievements
Rank 1
answered on 19 Feb 2010, 09:36 AM
hello,
can u give me the full tag where to add in xaml file

my grid code in file is as follows :

<

UserControl x:Class="WebF.Silverlight.View.MainPage"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

 

 

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

 

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

 

 

 

 

mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

 

 

 

<Grid x:Name="LayoutRoot">

 

 

<telerik:RadGridView x:Name="RadGridView" AutoExpandGroups="True"

 

 

CanUserSortColumns="True">

 

 

 

</telerik:RadGridView>

 

 

</Grid>

 

</

UserControl>

 

0
David Stanfield
Top achievements
Rank 1
answered on 22 Feb 2010, 06:37 PM

<telerik:RadGridView x:Name="RadGridView" AutoExpandGroups="True" CanUserSortColumns="True" telerik:Theming.Theme="Summer">

You will also need to add this using statement (if you don't have one like it already):

xmlns

 

 

:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"

 

 

 

 

 


And you will need to reference Telerik.Windows.Themes.Summer.dll in your Silverlight project.

David

 

 

Tags
GridView
Asked by
pranav
Top achievements
Rank 1
Answers by
Vlad
Telerik team
pranav
Top achievements
Rank 1
David Stanfield
Top achievements
Rank 1
Share this question
or