function
CloseRadWindowPostback(sArgument) {
ctl00_ctlAjaxManager.ajaxRequest(sArgument); // failure occurs here
var oWindow = GetRadWindow();
oWindow.close();
}
Just to be clear, the value "sArgument" is set to a string, and for the sake of testing I have eliminated the jQuery find logic, and used the clientID of the ajax manager control directly in the JS code.
The dialog form is created with a Master page containg the RadAjaxManager control, and viewing the source of the dialog form shows that the ajax manager object exits:
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$ctlScriptManager', document.getElementById('aspnetForm'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tctl00$ctlAjaxManagerSU'], [], [], 90);
//]]>
</script>
<!-- 2010.2.826.35 --><div id="ctl00_ctlAjaxManagerSU">
<span id="ctl00_ctlAjaxManager" style="display:none;"></span>
Why is the ajaxRequest code failing?

<telerik:RadGrid ID="RadGrid1" runat="server"
AllowPaging="True" GridLines="None"
Skin="Office2007"
DataSourceID="AccessDataSource1" AllowAutomaticDeletes="True"
AllowAutomaticInserts="True" AllowAutomaticUpdates="True" PageSize="8"><MasterTableView AutoGenerateColumns="False" DataSourceID="AccessDataSource1"><RowIndicatorColumn><HeaderStyle Width="20px"></HeaderStyle></RowIndicatorColumn><ExpandCollapseColumn><HeaderStyle Width="20px"></HeaderStyle></ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Name" DefaultInsertValue="" HeaderText="Name" SortExpression="Name" UniqueName="Name"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Email" DefaultInsertValue="" HeaderText="Email" SortExpression="Email" UniqueName="Email"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Details" DefaultInsertValue="" HeaderText="Details" SortExpression="Details" UniqueName="Details"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Place" DefaultInsertValue="" HeaderText="Place" SortExpression="Place" UniqueName="Place"> </telerik:GridBoundColumn> <telerik:GridClientDeleteColumn ConfirmText="Are you sure you want to delete this Memeber?" HeaderStyle-Width="35px" ButtonType="ImageButton" ImageUrl="Delete.gif" /> </Columns></MasterTableView>
</telerik:RadGrid>
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/admindb.mdb" SelectCommand="SELECT [Name], [Email], [Details], [Place] FROM [Login]" > </asp:AccessDataSource>ClientEvents-OnRowDataBound.
Here is my snippet:
ASPX:
-----------------
Clientside(Javascript)
---------------------------------
<script type="text/javascript">
function RowDataBound(sender, args) {
//Get handle of binaryimage for this cell upon databound
var img = args.get_item().findControl("IMGFLAG"); //This is not working!!!!!!!!!
if (img != null) {
// conditional formatting
// After I do my logic I want to change the image to closed
img.ImageUrl = "./Images/Closed.png";
}
}
</Script>
However this is not working!!! Please help. Thanks.