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

set_cancel(true) don't work!?

3 Answers 92 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Hans van Rijnswoud
Top achievements
Rank 2
Hans van Rijnswoud asked on 05 Oct 2011, 08:06 AM
Hi,

We are using the  version 2011.2.712.40 of telerik.
I want to prevent the postback of a radtoolbar with an OnClientButtonClicked to open a RadWindow.
I use e.set_cancel(true); but i receive always a javascript error : Error: Object doesn't support property or method 'set_cancel'

Any idee what is this probleem ?

In advance thanks.

Edwin.

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 05 Oct 2011, 12:22 PM
Hello Edwin,

I tested the property that you mention with the 2011.2.712.40 version of the Telerik controls but it works just fine on my side. Here I have attached the sample code that i used. Please give it a try and let me know how it works from your side?

Regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Hans van Rijnswoud
Top achievements
Rank 2
answered on 05 Oct 2011, 03:23 PM
Hello Kate,

Thank you for your quick answer.
I compare your code and my code and I found the problem.
I'm used OnClientButtonClicked instead of OnClientButtonClicking ;-)

Now is my problem solved off course !

Thanks again.

Regards,

Edwin.
0
Kate
Telerik team
answered on 05 Oct 2011, 03:38 PM
Edwin,

Thanks for letting me know. For more detailed information on the client-side event that you can use here is very good help article:
http://www.telerik.com/help/aspnet-ajax/toolbar-client-side-events.html


Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ToolBar
Asked by
Hans van Rijnswoud
Top achievements
Rank 2
Answers by
Kate
Telerik team
Hans van Rijnswoud
Top achievements
Rank 2
Share this question
or