set_cancel(true) don't work!?

4 posts, 0 answers
  1. Hans van Rijnswoud
    Hans van Rijnswoud avatar
    72 posts
    Member since:
    Sep 2008

    Posted 05 Oct 2011 Link to this post

    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.
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 05 Oct 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Hans van Rijnswoud
    Hans van Rijnswoud avatar
    72 posts
    Member since:
    Sep 2008

    Posted 05 Oct 2011 Link to this post

    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.
  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 05 Oct 2011 Link to this post

    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
Back to Top