RadConfirm with AJAX

2 posts, 1 answers
  1. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 11 Nov 2009 Link to this post

    Hi

    I'm using the code described here - http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx to ask the user if they want to postback (Reset a form) but I cant get it to work with the RadAjaxManager.

    This is the start of the javascript I'm using -
    <script type="text/javascript">  
        window.blockConfirm = function(text, mozEvent, oWidth, oHeight, callerObj, oTitle)   
        {   
            var ev = mozEvent ? mozEvent : window.event;  
     
            ev.cancelBubble = true;   
            ev.returnValue = false;   
            if (ev.stopPropagation) ev.stopPropagation();   
            if (ev.preventDefault) ev.preventDefault();   
                 
            var callerObj = ev.srcElement ? ev.srcElement : ev.target;   
     
            if (callerObj)   
            {   
                var callBackFn = function (arg)   
                {   
                    if (arg)  

    All that happens is the postback occurs - but the form data isn't updated.

    Andy

  2. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 16 Nov 2009 Link to this post

    Hello Andy,

    I followed your requirement and prepared a sample project for you. Please check it out and let me know if it works as desired and if any issues arise.

    Sincerely yours,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top