This question is locked. New answers and comments are not allowed.
Hi,
I am getting an error when specifying the StyleManager.Themes property in the RadGridView. I was not getting this before but I did obtain the dll's for 2010.2.714.1030. This problem is happening with this set of dll's. I would really like to make it work with this set because it contains a fix that I have been waiting months for telerik to fix.
I have attached a screen shot of the error. I also have a mini project that demonstrates the error, but it should be sufficient to just include the below code to re-create, since the code is very basic. All you have to do is try and run it to get the error.
Thanks,
Mark
I am getting an error when specifying the StyleManager.Themes property in the RadGridView. I was not getting this before but I did obtain the dll's for 2010.2.714.1030. This problem is happening with this set of dll's. I would really like to make it work with this set because it contains a fix that I have been waiting months for telerik to fix.
I have attached a screen shot of the error. I also have a mini project that demonstrates the error, but it should be sufficient to just include the below code to re-create, since the code is very basic. All you have to do is try and run it to get the error.
<
UserControl
x:Class
=
"TreeListColumns.MainPage"
xmlns:gridView
=
"clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
xmlns:telerik
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
xmlns:nav
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:telerikGridView
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
Grid.Resources
>
<
DataTemplate
x:Key
=
"template"
>
<
TextBlock
Text
=
"{Binding Name}"
/>
</
DataTemplate
>
</
Grid.Resources
>
<
telerikGridView:RadGridView
x:Name
=
"gvResultList"
IsFilteringAllowed
=
"False"
GridLinesVisibility
=
"Both"
Height
=
"450"
ScrollViewer.VerticalScrollBarVisibility
=
"Visible"
IsReadOnly
=
"True"
Width
=
"950"
AutoGenerateColumns
=
"False"
telerik:StyleManager.Theme
=
"Office_Silver"
>
<
telerikGridView:RadGridView.Columns
>
<
telerikGridView:GridViewDataColumn
Width
=
"97"
>
<
telerikGridView:GridViewDataColumn.CellStyle
>
<
Style
TargetType
=
"gridView:GridViewCell"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"gridView:GridViewCell"
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"2,2,2,2"
>
<
HyperlinkButton
x:Name
=
"GotToPerson"
TargetName
=
"_blank"
NavigateUri
=
"{Binding ClientKey, Converter={StaticResource uriConverter}}"
Foreground
=
"Black"
>
<
HyperlinkButton.Content
>
<
TextBlock
Text
=
"{Binding ViewClient, Source={StaticResource LocStrings}}"
TextDecorations
=
"Underline"
/>
</
HyperlinkButton.Content
>
</
HyperlinkButton
>
</
StackPanel
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerikGridView:GridViewDataColumn.CellStyle
>
</
telerikGridView:GridViewDataColumn
>
<
telerikGridView:GridViewDataColumn
UniqueName
=
"ClientName"
Width
=
"270"
/>
<
telerikGridView:GridViewDataColumn
UniqueName
=
"ClientGender"
Width
=
"270"
/>
<
telerikGridView:GridViewDataColumn
UniqueName
=
"ClientBirthDate"
Width
=
"270"
DataMemberBinding
=
"{Binding ClientBirthDate}"
DataFormatString
=
"{}{0:MMMM dd, yyyy}"
/>
</
telerikGridView:RadGridView.Columns
>
</
telerikGridView:RadGridView
>
</
Grid
>
</
UserControl
>
Thanks,
Mark