Dear All,
Please help ...
I have a GridTemplateColumn with Checkbox as below
I have added the following code in grid_ItemDataBound event, because of I want to prompt confirm when user click to Checked/UnChecked
Now this only do OnClick, but not fire OnCheckedChanged event.
Any idea to do both when checkedchanged, Please ?
Thanks and best regards
Please help ...
I have a GridTemplateColumn with Checkbox as below
<
telerik:GridTemplateColumn
UniqueName
=
"Exist"
DataField
=
"Exist"
HeaderText
=
"Exist"
>
<
HeaderStyle
Width
=
"37px"
/>
<
ItemTemplate
>
<
asp:CheckBox
id
=
"CheckBox1"
checked='<%# IF(Eval("Exist") is DBNull.Value, False, Eval("Exist")) %>' OnCheckedChanged="ToggleRowSelection" AutoPostBack="true" runat="server"></
asp:CheckBox
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
chk.Attributes.Add(
"onclick"
,
"return confirm('Are you sure?')"
)
Now this only do OnClick, but not fire OnCheckedChanged event.
Any idea to do both when checkedchanged, Please ?
Thanks and best regards