Hi,
I have Telerik version of Q3 2010 but I still doesn't get postback after using OnClientClicking.
I am trying to get user confirmation for adding an object.
Maybe you can tell me what am I doing wrong.
Java script:
<
script type="text/javascript">
function UserClicking(sender, args) {
if (confirm(" Do you wish to add another record?")) {
}
else {
// args.set_cancel(true); this line is in comment since I wanted to isolate the problem.
}
}
</
script>
Aspx:
<telerik:RadButton ID="ButtonCreateNew" runat="server" OnClientClicking="UserClicking" Text="Add"
onclick="ButtonCreateNew_Click" AutoPostBack="true">
<Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4" />
</telerik:RadButton>
By the way of grid button there is a build in attribute for confirmation, it seems a bit odd that it is missing from the rad button.