I am using radgrid in my project, i have a strange issue about confirmation dialog,
below is a sample code from one of my aspx page...
the confirmation dialog window opens and works as expected, no problem...
However, some records should be disabled for deleting, when I disable those records from code-behind (inside ItemDataBound event of the gridview) like:
The button is disabled, no problem... But a user still can click on that button and the confirmation dialog pop-ups!?
If the user clicks on 'Yes' to try deleting the record, the confirmation window closes, but the record is not being deleted...
Is it a bug? How can i prevent a disabled button to be clicked?
below is a sample code from one of my aspx page...
<
telerik:GridButtonColumn
CommandName
=
"Delete"
HeaderStyle-Width
=
"30px"
Text
=
"Delete"
UniqueName
=
"columnButtonDelete"
ConfirmDialogType
=
"RadWindow"
ConfirmText
=
"Are you sure to delete the record?"
ConfirmTitle
=
"Confirm Delete"
>
</
telerik:GridButtonColumn
>
the confirmation dialog window opens and works as expected, no problem...
However, some records should be disabled for deleting, when I disable those records from code-behind (inside ItemDataBound event of the gridview) like:
CType(DataItem("columnButtonDelete").Controls(0), LinkButton).Enabled = False
The button is disabled, no problem... But a user still can click on that button and the confirmation dialog pop-ups!?
If the user clicks on 'Yes' to try deleting the record, the confirmation window closes, but the record is not being deleted...
Is it a bug? How can i prevent a disabled button to be clicked?