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

RadConfirm with AJAX

1 Answer 76 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 1
Andy Green asked on 11 Nov 2009, 10:37 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 16 Nov 2009, 09:41 AM
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.
Tags
Ajax
Asked by
Andy Green
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or