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

RadConfirm 2 Time

2 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ALEX
Top achievements
Rank 1
ALEX asked on 29 Aug 2011, 08:43 AM
Hi Expert,

           I'm using the Rad Menu. When i click the menu "Rad Confirm" is appear. If user click the "Yes" i will go to func1 and "No" to func2. In side a func1 has "Rad Confirm" dialog appear and click yes/no.

           My problem is i can't capture the first "Rad Confirm" yes/no function.
if (!clickCalledAfterRadconfirm) 
                    
                        eventArgs.set_cancel(true);
                        lastClickedItem = eventArgs.get_item();
                        if (docno!='' && docno!=null && docno!=undefined && oppno!='' && oppno!=null && oppno!=undefined)             
                            radconfirm("Do you want to update to CRM Opportunity: <span style='color:red'>"
                                        + oppno + " </span>? <br/>", confirmCallbackFunction,450,50,"","Update to CRM");
                                       //i wann do this way
                                       if yes then
                                          do func1
                                       else
                                          if confirm("Do you want to do func2?") then
                                              do func2
                        //////////////////////////////////////////////////     
                        else
                            radalert("<span style='color:red'> Document No. or Opportunity is empty.<br/>" +
                                     "You cannot use Update-to Crm function.<span style='color:red'>",350,80,"Update to CRM");               
                    }

            kindly please guide to me.

Best Regards,

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 31 Aug 2011, 11:14 AM
Hi Alex,

What I would advise is to declare the callback functions just before the radconfirm is called and when you capture the response you can nest another call to another radconfirm. For your convenience I created and attached a simple page that mimics your scenario (apart from the custom messages, of course). Please use it as a reference to incorporate this functionality in your project. You can find a video with the expected behavior in the following link: http://screencast.com/t/LicOG1YLfgIS. I hope this is the intended effect. Please note my comments in the code.


Kind regards,
Marin
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
ALEX
Top achievements
Rank 1
answered on 01 Sep 2011, 05:09 AM
Hi Support,

              Thanks! You can support what i wann.

Best Regards,
Tags
General Discussions
Asked by
ALEX
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
ALEX
Top achievements
Rank 1
Share this question
or