I have a radgrid bound by entity datasource and has the following column:
<
telerik:GridTemplateColumn
UniqueName
=
"Color"
HeaderText
=
"Background Color"
DataField
=
"Colour"
ItemStyle-Width
=
"150px"
ItemStyle-HorizontalAlign
=
"Center"
SortExpression
=
"myColor"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"32px"
>
<
ItemTemplate
>
<
div
style='width: 16px; height: 16px; background-color: #<%# Eval("Colour") %>'></
div
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadColorPicker
runat
=
"server"
ShowIcon
=
"true"
ID
=
"RadColorPicker1"
SelectedColor='<%# System.Drawing.ColorTranslator.FromHtml("#" + Eval("Colour")) %>' />
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
The datasource looks like this
<
asp:EntityDataSource
ID
=
"eds1"
runat
=
"server"
OrderBy
=
"[it].Name"
ConnectionString
=
"name=DBSchoolsEntities"
DefaultContainerName
=
"DBSchoolsEntities"
EnableDelete
=
"True"
EnableFlattening
=
"False"
EnableInsert
=
"True"
EnableUpdate
=
"True"
EntitySetName
=
"Classifications"
EntityTypeFilter
=
"Classification"
>
</
asp:EntityDataSource
>
I have other columns on the grid that dont have EditItemTemplates and these fields update in the db just fine, but the colour picker column doesnt update in the database and I dont know why?