heya.
Trying to achieve a couple things.
Load up radwindow and display details (check)
'notes' field textbox and button in radwindow (check)
button click events set as so...
Trying to achieve a couple things.
Load up radwindow and display details (check)
'notes' field textbox and button in radwindow (check)
button click events set as so...
<asp:Button ID="btnCancel" OnClick="btnCancel_Click" OnClientClick="CloseWindow(); return false;" runat="server" Text="Cancel" />
problem is that the page is closing before the data update is taking place..
Also... I would prefer if i could get the grid that launched the radwindow via gridItemTemplate to rebind.. otherwise rebind the whole page.
code below
Parent aspx code:
function cancelPost(recordid) |
{ |
var oWnd = radopen("Ctrls/Leaders/cancelposting.aspx?RecordID=" +recordid, "RadWindow2" ); |
oWnd.center(); |
oWnd.add_close(OnClientClose); |
} |
function OnClientClose(oWnd) |
{ |
var order = document.getElementById("order"); |
order.innerHTML = "<strong> Cancellation request went through.</strong>"; |
} |
<a href="#" onclick="cancelPost('<%# DataBinder.Eval(Container.DataItem, "RecordID") %>'); return false;">Cancel</a>
|
Radwindow relevant Code
<script type="text/javascript"> |
function GetRadWindow() |
{ |
var oWindow = null; |
if (window.radWindow) oWindow = window.radWindow; |
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; |
return oWindow; |
} |
function CloseWindow() |
{ |
var Ownd = GetRadWindow(); |
//var oArg = new Object(); |
//Ownd.argument = oArg; |
Ownd.close(); |
} |
</script> |
<a href="#" onclick="cancelPost('<%# DataBinder.Eval(Container.DataItem, "RecordID") %>'); return false;">Cancel</a> |