Greetings,
Ok, so here is what's going on. I'm using a RadGrid with a RadToolBar to display some data. On the toolbar, I have a button called Deny Membership. Upon clicking it, it pops up a RadWindow with two labels in it, along with a RadTextbox and an ASP:Button. Upon clicking the button, the page does some database calls to delete a user out of a table.
Ok, here is the part I'm having trouble with. Once that is done, at the end of the Click Event, I have a label's (the first one on the page) text set to the following:
That works fine, so the page starts that function as follows:
This is an example that I found on the Telerik site to close out a RadWindow and refresh the parent page. The problem is, I get a javascript error on GetRadWindow().BrowseWindow, saying it is null or not an object. I'm unsure what to do with this. Any ideas? Thanks.
~ Chad
Ok, so here is what's going on. I'm using a RadGrid with a RadToolBar to display some data. On the toolbar, I have a button called Deny Membership. Upon clicking it, it pops up a RadWindow with two labels in it, along with a RadTextbox and an ASP:Button. Upon clicking the button, the page does some database calls to delete a user out of a table.
Ok, here is the part I'm having trouble with. Once that is done, at the end of the Click Event, I have a label's (the first one on the page) text set to the following:
lblReason.Text = "<script>RefreshParentPage()</" + "script>"; |
That works fine, so the page starts that function as follows:
<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 RefreshParentPage() |
{ |
GetRadWindow().BrowseWindow.location.reload(); |
} |
</script> |
This is an example that I found on the Telerik site to close out a RadWindow and refresh the parent page. The problem is, I get a javascript error on GetRadWindow().BrowseWindow, saying it is null or not an object. I'm unsure what to do with this. Any ideas? Thanks.
~ Chad