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">
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" /> |