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

Confirm : clicking yes does work

2 Answers 82 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 02 Mar 2009, 04:06 PM
Hi
I have a page with a Radgrid that allows multi selection. I have a button with I would like to have a confirm Dialogue on that when the user clicks yes on the confirm will call a VB procedure to manipulate records. At the moment the OnClick="ToPlanningBtn_Click" does not get exectuted when yes is clicked (it does nothing). I'm pretty new at this and the following code is based on advice from this formum. Clearly I am doing something wrong. I'm not sure if it relates to the __doPostBack function. Any help getting this working will really be great.

Regards
Mark

*Edit * LOL the topic should read Clicking yes does NOT work
My current Code :

script type="text/javascript">   
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Office2007">             </telerik:RadWindowManager>
function ValidateFn()   
{   
    radconfirm("Send Selected Orders to Planning?", callbackFn);    
    return false;   
}   
function callbackFn(arg)   
{   
    //if the validation passes - 'simulate' the button's click   
    if (arg)   
        {   
      
           __doPostBack("<%= ToPlanningBtn.ClientID %>","");   
        }   
}   
                                                        </script> 

   <asp:Button ID="Button3" runat="server" Text="Send To Planning"                                                              OnClientClick="ValidateFn(); return false;" Visible="True" />                                                            <style type="text/css">                                                               .buttons                                                               {                                                                   display: none;                                                               }                                                           </style>                                                         <asp:Button ID="ToPlanningBtn"  runat="server" OnClick="ToPlanningBtn_Click"                                                             Text="Button"   CssClass="buttons" />

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 04 Mar 2009, 11:25 AM
Hi Mark,

The code that you posted seems fine and works as expected (see attached video). Could you please open a support ticket and send me a small sample project where I could reproduce the problem?



Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark
Top achievements
Rank 1
answered on 05 Mar 2009, 07:50 AM
Ok, thanks a lot for the reply. Seems I need to do more testing to see why It does not do the onclick event on postback then.
Tags
Window
Asked by
Mark
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Mark
Top achievements
Rank 1
Share this question
or