This question is locked. New answers and comments are not allowed.
Hello guys
I am trying to display images in the header cell of a radgridview, but the code is throwing me an exception in IE8
but
Please advice?
Thank you!
I am trying to display images in the header cell of a radgridview, but the code is throwing me an exception in IE8
<
telerikGrid:GridViewDataColumn
Width
=
"30"
>
<
telerikGrid:GridViewDataColumn.HeaderCellStyle
>
<
Style
TargetType
=
"telerikGridView:GridViewCell"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerikGridView:GridViewCell"
>
<
StackPanel
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Orientation
=
"Horizontal"
>
<
Image
Width
=
"15"
Name
=
"imgAdd"
Height
=
"15"
MouseLeftButtonUp
=
"imgAdd_MouseLeftButtonUp"
Tag
=
"{Binding TableCompositeKey}"
ToolTipService.ToolTip
=
"Add"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Source
=
"/Ceridian.HRO.WebUI.Portal;Component/Images/plus.png"
/>
<
Image
Width
=
"15"
Height
=
"15"
Name
=
"imgSaveNew"
MouseLeftButtonUp
=
"imgSave_MouseLeftButtonUp"
Tag
=
"{Binding TableCompositeKey}"
Visibility
=
"Collapsed"
ToolTipService.ToolTip
=
"Save"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Source
=
"/Ceridian.HRO.WebUI.Portal;Component/Images/plus.png"
/>
<
Image
Width
=
"15"
Height
=
"15"
Name
=
"imgCancelNew"
MouseLeftButtonUp
=
"imgCancel_MouseLeftButtonUp"
Tag
=
"{Binding TableCompositeKey}"
Visibility
=
"Collapsed"
ToolTipService.ToolTip
=
"Cancel"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Source
=
"/Ceridian.HRO.WebUI.Portal;Component/Images/minus.png"
/>
</
StackPanel
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerikGrid:GridViewDataColumn.HeaderCellStyle
>
<
telerikGrid:GridViewDataColumn.CellStyle
>
<
Style
TargetType
=
"telerikGridView:GridViewCell"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerikGridView:GridViewCell"
>
<
StackPanel
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Orientation
=
"Horizontal"
>
<
Image
Width
=
"15"
Height
=
"15"
Name
=
"imgEdit"
MouseLeftButtonUp
=
"imgEdit_MouseLeftButtonUp"
Tag
=
"{Binding TableCompositeKey}"
ToolTipService.ToolTip
=
"Edit"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Source
=
"/Ceridian.HRO.WebUI.CustomControls;Component/Images/edit.png"
/>
<
Image
Width
=
"15"
Height
=
"15"
Name
=
"imgSave"
MouseLeftButtonUp
=
"imgSave_MouseLeftButtonUp"
Tag
=
"{Binding TableCompositeKey}"
Visibility
=
"Collapsed"
ToolTipService.ToolTip
=
"Save"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Source
=
"/Ceridian.HRO.WebUI.Portal;Component/Images/plus.png"
/>
<
Image
Width
=
"15"
Height
=
"15"
Name
=
"imgCancel"
MouseLeftButtonUp
=
"imgCancel_MouseLeftButtonUp"
Tag
=
"{Binding TableCompositeKey}"
Visibility
=
"Collapsed"
ToolTipService.ToolTip
=
"Cancel"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Source
=
"/Ceridian.HRO.WebUI.Portal;Component/Images/minus.png"
/>
</
StackPanel
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerikGrid:GridViewDataColumn.CellStyle
>
</
telerikGrid:GridViewDataColumn
>
<
telerikGrid:GridViewDataColumn.CellStyle
>
is working finebut
<
telerikGrid:GridViewDataColumn.HeaderCellStyle
>
is NOT workingPlease advice?
xmlns
:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
xmlns
:telerikGridView="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
Thank you!