Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > radconfirm equivalent to confirm

Not answered radconfirm equivalent to confirm

Feed from this thread
  • Srinivasa Rao Dhulipalla avatar

    Posted on Dec 14, 2011 (permalink)

    Hi,

    I need radconfirm make working similar to default browser's confirm. browser's confirms returns user action either true or false, but in case of radconfirm need to add callback funtion and radconfirm is not waiting till users responded. with callback function, I was unable to do postback, if user gives positive response. here are my two scenarios with both confirms..

    1) function remove() {
              var result = confirm("Do you wish to remove?");
              if(result) return true; else return false;
        }

    2) function remove1() {
                radconfirm("Do you with to remove?", confirmCallBackFn, 330, 100, null, 'title');
                return false;
         }

        function confirmCallBackFn(arg) {
            if (arg) {
                document.forms[0].submit();   // I don't want to make postback with this, as it causes refreshing whole page. I am calling remove/remove1 method on a control which is in update panel..
            }
        }

    I want to use the radconfirm() instead of confirm(), but need the similar way of my first scenario which signals to update panel with user's response either true or false.

    Kindly suggest me on this....

    Regards,
    Srinivas

    Reply

  • Marin Bratanov Marin Bratanov admin's avatar

    Posted on Dec 15, 2011 (permalink)

    Hi Srinivas,

    Please examine the following online demo which shows how to confirm clicks and perform a postback after that: http://demos.telerik.com/aspnet-ajax/window/examples/confirmserverclicks/defaultcs.aspx. Please also examine the description section carefully for more information on the peculiarities and limitations of this approach.


    Kind regards,
    Marin
    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > RadControls in DotNetNuke > radconfirm equivalent to confirm