I have a radgrid with the grid tied to one datasource and a grid attachment column tied to another one. The purpose is to just click on the link for the column and have it open the appropriate web plug-in for that attachment.
When I debug the grid in IE 9, I get an exception thrown out of the RadScript Manager. Line: 6
Error: Could not complete the operation due to error c00ce514.
From what I can tell, it doesn't even hit the database for the second datasource to retrieve the image when running in IE.
When I run the same code in Firefox, everything behaves as expected. When I have googled the error, it talks about temporarily turning off Ajax. My gut feeling is that the Javascript code I have in place is being ignored in IE. I have set breakpoints in that Javascript code just to make sure it is getting executed and the objects are not null / nothing.
Any idea what could be going on? Here is a snippet of the code...
When I debug the grid in IE 9, I get an exception thrown out of the RadScript Manager. Line: 6
Error: Could not complete the operation due to error c00ce514.
From what I can tell, it doesn't even hit the database for the second datasource to retrieve the image when running in IE.
When I run the same code in Firefox, everything behaves as expected. When I have googled the error, it talks about temporarily turning off Ajax. My gut feeling is that the Javascript code I have in place is being ignored in IE. I have set breakpoints in that Javascript code just to make sure it is getting executed and the objects are not null / nothing.
Any idea what could be going on? Here is a snippet of the code...
<telerik:RadGrid ID="grdAttachments" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" DataSourceID="sdsCaseAttachments" GridLines="None" OnDeleteCommand="grdAttachments_DeleteCommand" OnItemCommand="grdAttachments_ItemCommand" OnItemDeleted="grdAttachments_ItemDeleted" OnItemInserted="grdAttachments_ItemInserted" OnItemUpdated="grdAttachments_ItemUpdated"> <ClientSettings EnableAlternatingItems="true" EnableRowHoverStyle="true"> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings> <MasterTableView CommandItemDisplay="None" DataKeyNames="DocId" DataSourceID="sdsCaseAttachments"> <Columns> <telerik:GridBoundColumn DataField="DocId" DataType="System.Int32" Display="false" EditFormColumnIndex="0" HeaderText="DocId" ReadOnly="True" SortExpression="DocId" UniqueName="DocId" /> <telerik:GridBoundColumn DataField="CaseProgId" DataType="System.Int32" Display="false" EditFormColumnIndex="0" HeaderText="CaseProgId" ReadOnly="True" SortExpression="CaseProgId" UniqueName="CaseProgId" /> <telerik:GridAttachmentColumn DataSourceID="sdsAttachment" HeaderText="Download" AttachmentDataField="CaseDoc" AttachmentKeyFields="DocId" FileNameTextField="FileName" DataTextField="FileName" UniqueName="AttachmentColumn"> </telerik:GridAttachmentColumn> <telerik:GridBoundColumn DataField="FileType" EditFormColumnIndex="2" HeaderText="File Type" SortExpression="FileType" UniqueName="FileType" /> <telerik:GridDateTimeColumn DataField="UploadDt" DataFormatString="{0:MM/dd/yyyy}" EditFormColumnIndex="1" FilterDateFormat="{0:MM/dd/yy}" HeaderText="Date Uploaded" SortExpression="UploadDt" UniqueName="UploadDt" /> <telerik:GridBoundColumn DataField="FileSz" EditFormColumnIndex="2" HeaderText="File Size" SortExpression="FileSz" UniqueName="FileSz" /> <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure you want to delete?" ImageUrl="~/images/delete.png" Text="Delete" UniqueName="imgDelete" /> </Columns> </MasterTableView> <ClientSettings> <ClientEvents OnCommand="gridCommand"></ClientEvents> </ClientSettings> <FilterMenu EnableImageSprites="False"> </FilterMenu> </telerik:RadGrid>function gridCommand(sender, args) { if (args.get_commandName() == "DownloadAttachment") { var manager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>'); manager.set_enableAJAX(false); setTimeout(function () { manager.set_enableAJAX(true); }, 20000); } }
