Hi,
I am trying to check some combo items from a Radcombobox inside a GridTemplateColumn but unfortunately I cannot get it to work. Instead when I directly set the checked attribute on a checkbox I obtain the correct functionality. The RadGrid is bound to a datasource which all combo items are defined with boolean values (
Code working:
Code not working:
Thanks.
I am trying to check some combo items from a Radcombobox inside a GridTemplateColumn but unfortunately I cannot get it to work. Instead when I directly set the checked attribute on a checkbox I obtain the correct functionality. The RadGrid is bound to a datasource which all combo items are defined with boolean values (
SyncVariantLocalizations
, SyncVariantPictures, etc).Code working:
<
asp:CheckBox
ID
=
"CheckBox5"
runat
=
"server"
Enabled
=
"false"
Checked='<%# Eval("SyncVariantLocalizations")%>' />
Code not working:
<
telerik:GridTemplateColumn
UniqueName
=
"SyncSetting"
HeaderText
=
"Sync Settings"
HeaderStyle-Width
=
"232"
>
<
ItemTemplate
>
<
div
style
=
"float: right;"
>
<
telerik:RadComboBox
ID
=
"RadComboBoxSyncConf"
runat
=
"server"
Width
=
"220px"
CheckBoxes
=
"true"
EnableCheckAllItemsCheckBox
=
"false"
DropDownAutoWidth
=
"Enabled"
>
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"Product Localizations"
Value
=
"SyncProductLocalizations"
Checked='<%# Eval("SyncProductLocalizations")%>' Enabled="false" />
<
telerik:RadComboBoxItem
Text
=
"Product Pictures"
Value
=
"SyncProductPictures"
Checked='<%# Eval("SyncProductPictures")%>' Enabled="false" />
<
telerik:RadComboBoxItem
Text
=
"Product Categories"
Value
=
"SyncProductCategoryMap"
Checked='<%# Eval("SyncProductCategoryMap")%>' />
<
telerik:RadComboBoxItem
Text
=
"Product Manufacturers"
Value
=
"SyncProductManufacturerMap"
Checked='<%# Eval("SyncProductManufacturerMap")%>' />
<
telerik:RadComboBoxItem
Text
=
"Variant Localizations"
Value
=
"SyncVariantLocalizations"
Checked='<%# Eval("SyncVariantLocalizations")%>' />
<
telerik:RadComboBoxItem
Text
=
"Variant Pictures"
Value
=
"SyncVariantPictures"
Checked='<%# Eval("SyncVariantPictures")%>' />
<
telerik:RadComboBoxItem
Text
=
"Variant Attributes"
Value
=
"SyncVariantCustomAttributes"
Checked='<%# Eval("SyncVariantCustomAttributes")%>' />
</
Items
>
</
telerik:RadComboBox
>
</
div
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
Thanks.