This is a migrated thread and some comments may be shown as answers.

[Solved] radgrid with GridAttachment Column throws Script Manager error: c00ce514 when using IE 9; no error in Firefox

1 Answer 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alan Jackson
Top achievements
Rank 1
Alan Jackson asked on 08 May 2013, 06:18 PM
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...

<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);
	}
}

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 13 May 2013, 06:11 PM
Hi Alan,

In order to verify that the issue is only replicates in one browser you need to ensure that the option for script debugging is enabled for all browsers.

Sample scenario with an attachment column is illustrated in this online demo.

If you are using Ajax you could try to disable it with the help of the EnableAjax property of RadAjaxPanel and RadAjaxManager and check whether the issue still replicates.

Greetings,
Victor Tachev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Alan Jackson
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or