This is a migrated thread and some comments may be shown as answers.

radConfirm on ToolBar_Click

1 Answer 60 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Dominic
Top achievements
Rank 2
Dominic asked on 04 Mar 2009, 02:51 PM


Hi

I'm looking for an example to show a radconfirm to the user after clicking on a toolBar_Button, i've found this thread : http://www.telerik.com/support/kb/aspnet-ajax/window/using-radprompt-and-radconfirm-with-telerik-navigational-controls.aspx
but my question is, why we cant just use a client side fonction on the OnClientButtonClicking event and like : 

 

OnClientButtonClicking="ConfirmData;return false;" and on this function juste make an AjaxRequestWithTarget("<%=ToolBar.ClientID%>") ? If i'm using this approach the postback are not canceled (with the "return false"), and if i'm cancelling the event (eventArgs.set_cancel(true)) the server side event is never raise.  So if someone can give me more informations about this approach, it will be really appreciated !

Thanks in advance for your help.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 05 Mar 2009, 01:13 PM
Hello Dominic,

All client-side methods strictly follow the ASP.NET AJAX conventions and that's why when subscribing to OnClientButtonClicking event , the event handler should take two parameters - sender and eventArgs.

I couldn't understand why you cannot use args.set_cancel() method to cancel the postback when needed. Please explain in more details your scenario and/or send us a sample code.  Thank you

All the best,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolBar
Asked by
Dominic
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or