In a telerik:RadGrid, I have a GridEditCommandColumn like this:
<
telerik:RadGrid
ID
=
"grdMembers"
runat
=
"server"
OnEditCommand
=
"grdMembers_OnEditCommand"
AutoGenerateColumns
=
"False"
>
<
MasterTableView
DataKeyNames
=
"MemberID"
ShowHeadersWhenNoRecords
=
"false"
>
<
Columns
>
<
telerik:GridEditCommandColumn
HeaderStyle-Width
=
"30px"
EditImageUrl
=
"pen-16x16.png"
ButtonType
=
"ImageButton"
UniqueName
=
"TemplateColumn"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
(some more columns are actually included, but I omit those for now).
The grdMembers_OnEditCommand is having a breakpoint.
Now, when the ButtonType is either ImageButton or FontIconButton, the pen icon shows up (not otherwise), but the OnEditCommand will not fire.
Why not?
If the ButtonType is LinkButton, the first column will read "Edit", and the OnEditCommand fires if such a link is clicked.
It would help if I could paste code in this forum without line endings being killed.
Also, undo would be appreciated.
Thanks!