I have a radButton in the groupfooter of a radGrid.
I have set the OnClick to call the button click which is in ASP. It is a delete button, so I wanted to confirm deletion before actually deleting. The OnClientClicked does not fire. For testing purposes, I even removed the OnClientClick andOnClientClicked still does not fire. Here is a snippet of my code:
The OnClientClick, when it was in there, would go to this code:
I am on Windows 7
I am using MS Visual Studio 2010
I have the latest RadControls v.2011.3.1305.35
I have set the OnClick to call the button click which is in ASP. It is a delete button, so I wanted to confirm deletion before actually deleting. The OnClientClicked does not fire. For testing purposes, I even removed the OnClientClick andOnClientClicked still does not fire. Here is a snippet of my code:
<
GroupFooterTemplate
>
<
telerik:RadButton
runat
=
"server"
ID
=
"RadButton1"
Text='<%# sDeleteButtonText %>' Value='<%# sCountryCode %>' OnClientClicked="if(!confirm('Are you sure you want delete this?')) return false;" >
</
telerik:RadButton
>
</
GroupFooterTemplate
>
The OnClientClick, when it was in there, would go to this code:
Public Sub RadButton1_click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim button As RadButton = sender
SqlDataSource1.DeleteParameters.Item("CurrencyTarget_CountryCode").DefaultValue = button.Value
SqlDataSource1.Delete()
RadGrid1.MasterTableView.Rebind()
RadGrid1.CurrentPageIndex = 0
End Sub
I am on Windows 7
I am using MS Visual Studio 2010
I have the latest RadControls v.2011.3.1305.35