Hello
I have column defined like BinaryImageColumn in Radgridview
when I press edit I can modify existing record with all textfields and I have pregenerated control where I can select image
Issue if I do not select any image it will remove exiting image Why it responding like this normally it must not touch change data if it is
exist ? Do somebody know solution many Thanks in advance
I have column defined like BinaryImageColumn in Radgridview
when I press edit I can modify existing record with all textfields and I have pregenerated control where I can select image
Issue if I do not select any image it will remove exiting image Why it responding like this normally it must not touch change data if it is
exist ? Do somebody know solution many Thanks in advance
<
asp:Content
ID
=
"Content1"
ContentPlaceHolderID
=
"head"
Runat
=
"Server"
>
</
asp:Content
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
DataSourceID
=
"SqlDataSource1"
GridLines
=
"None"
Skin
=
"Windows7"
AllowCustomPaging
=
"True"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
AutoGenerateHierarchy
=
"True"
>
<
ExportSettings
ExportOnlyData
=
"True"
FileName
=
"Export"
>
<
Excel
Format
=
"ExcelML"
/>
</
ExportSettings
>
<
MasterTableView
AutoGenerateColumns
=
"False"
CommandItemDisplay
=
"Top"
DataKeyNames
=
"ManufacturerName"
DataSourceID
=
"SqlDataSource1"
Frame
=
"Void"
GridLines
=
"None"
>
<
CommandItemSettings
ShowExportToCsvButton
=
"True"
ShowExportToExcelButton
=
"True"
ShowExportToWordButton
=
"True"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"ManufacturerName"
HeaderText
=
"Manufacturer Name"
SortExpression
=
"ManufacturerName"
UniqueName
=
"ManufacturerName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBinaryImageColumn
AllowFiltering
=
"False"
AllowSorting
=
"False"
DataField
=
"ManufacturerLogo"
DefaultInsertValue
=
""
HeaderText
=
"Logo"
ImageAlign
=
"Middle"
ImageHeight
=
"100px"
ImageWidth
=
"100px"
ResizeMode
=
"Fit"
UniqueName
=
"column"
ConvertEmptyStringToNull
=
"False"
>
</
telerik:GridBinaryImageColumn
>
<
telerik:GridEditCommandColumn
>
</
telerik:GridEditCommandColumn
>
</
Columns
>
<
EditFormSettings
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
></
EditColumn
>
</
EditFormSettings
>
<
CommandItemStyle
Height
=
"50px"
Width
=
"50px"
/>
</
MasterTableView
>
</
telerik:RadGrid
>
<
asp:SqlDataSource
ID
=
"SqlDataSource1"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:dbConnectionString %>"
SelectCommand="SELECT * FROM [tbl_manufacturers]"
UpdateCommand="UPDATE tbl_manufacturers SET ManufacturerName = @ManufacturerName, ManufacturerLogo = @ManufacturerLogo WHERE (ManufacturerName = @ManufacturerName)"
<
UpdateParameters
>
<
asp:Parameter
Name
=
"ManufacturerName"
/>
<
asp:Parameter
Name
=
"ManufacturerLogo"
DbType
=
"Binary"
/>
</
UpdateParameters
>
</
asp:SqlDataSource
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
Runat
=
"server"
>
</
telerik:RadScriptManager
>