Hi,
I might be misunderstanding the use of ConfirmText on a GridButtonColumn, but if the user chooses "Cancel" then I would expect the ItemCommand event would not fire? We have a grid with a Delete button seen here
The code for performing the delete occurs in the ItemCommand event. Unfortunately no matter what the user chooses (both Ok or Cancel) the event still fires performing the delete. Is this the correct behavior? If so, is there an argument I can grab from the GridCommandEventArgs to determine if the user select Ok or Cancel?
Thanks,
Mike
I might be misunderstanding the use of ConfirmText on a GridButtonColumn, but if the user chooses "Cancel" then I would expect the ItemCommand event would not fire? We have a grid with a Delete button seen here
<
telerik:GridButtonColumn
Text
=
"Delete"
CommandName
=
"Delete"
ButtonType
=
"ImageButton"
ConfirmText
=
"Are you sure you want to delete this attachment?"
>
<
HeaderStyle
Width
=
"20px"
/>
</
telerik:GridButtonColumn
>
The code for performing the delete occurs in the ItemCommand event. Unfortunately no matter what the user chooses (both Ok or Cancel) the event still fires performing the delete. Is this the correct behavior? If so, is there an argument I can grab from the GridCommandEventArgs to determine if the user select Ok or Cancel?
Thanks,
Mike