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

RadGrid :Could not complete the operation due to error 800a025e

3 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 13 Oct 2010, 11:39 PM
i'am getting an error while using IE 8  
htmlfile: Could not complete the operation due to error 800a025e.

I found this temporaly solution 
Tools -> Compatibility View Settings -> and check Display all websites in compatilbility view

But i think that i can't change this setting in all client that is using my web application 

i call SetCursorToTextEnd function after the grid is filtered, because i need put the cursor at the end text
 

<

 

 

script type="text/javascript" language="javascript">

 

 

 

 

 

function SetCursorToTextEnd(textControlID) 

 { 

 

 

var text = document.getElementById(textControlID);

 

 

if (text != null) {

 

 

 

if (text.createTextRange) {

 

 

 

var range = text.createTextRange();

 

 range.moveStart(

 

'character', text.value.length);

 

 range.collapse();

range.select(); //Here is the error!!!

}

 

 

else if (text.setSelectionRange) {

 

 

 

 

var textLength = text.value.length;

 text.setSelectionRange(textLength, textLength);

}

}

 }

 

 

 

</script>

 

 

<

 

 

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

<script type="text/javascript">

 

 

function doFilter(sender, eventArgs, columna) {

 

 

 

if (eventArgs.keyCode == 13) {

 

 eventArgs.cancelBubble =

 

true;

 

 eventArgs.returnValue =

 

false;

 

  

 

 

if (eventArgs.stopPropagation) {

 eventArgs.stopPropagation();

eventArgs.preventDefault();

}

 

 

 

var tableView = $find("<%= gridProductos.ClientID %>").get_masterTableView();

 

 

var ordenamiento = "";

 

 

 

 

if (columna == "SupplierID" || columna == "CategoryID" || columna == "UnitsInStock") {

 ordenamiento =

 

"EqualTo";

 

 }

 

else {

 

 ordenamiento =

 

"Contains";

 

 }

filtro = sender.value;

$(

 

'#hdControlFiltro').val(sender.id);

 

 tableView.filter(columna, sender.value, ordenamiento);

}

}

 

 

 

function MasterTableViewCreated(sender, eventArgs) {

 

 

var nombreControlFiltro = $("#hdControlFiltro").val();

 

 

 

 

if (nombreControlFiltro != '') {

 SetCursorToTextEnd(nombreControlFiltro);

}

}

 

 

</script>

 

 

 

</telerik:RadCodeBlock>

 

<

 

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

 

 

 

 

 

 

<telerik:RadStyleSheetManager ID="RadStylesheetManager1" runat="server" />

 

 

 

 

 

 

 

<telerik:RadSkinManager ID="RadSkinManager1" Skin="Office2007" runat="server" />

 

 

<telerik:RadAjaxManager ID="ajax_manager1" runat="server">

 

 

 

 

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="gridProductos">

 

  

 

 

<UpdatedControls>

 

 

 

 

<telerik:AjaxUpdatedControl ControlID="gridProductos" />

 

 

 

 

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

 

</AjaxSettings>

 

 

 

 

 

 

</telerik:RadAjaxManager>

 

 

<telerik:RadGrid ID="gridProductos" runat="server" AutoGenerateColumns="false"

 

 

 

onneeddatasource="gridProductos_NeedDataSource" AllowFilteringByColumn="true"

 

 

 

 

AllowSorting="true" onitemcreated="gridProductos_ItemCreated" AllowPaging="true" AllowCustomPaging="True" ClientSettings-ClientEvents-OnMasterTableViewCreated ="MasterTableViewCreated"

 

 

 

 

AllowMultiRowSelection="false" OnSortCommand="gridProductos_SortCommand" OnPageIndexChanged="gridProductos_PageIndexChanged">

 

 

 

 

<MasterTableView>

 

 

 

 

<Columns>

 

 

 

<telerik:GridImageColumn ImageUrl="images/seleccionar.png" UniqueName="Seleccionar">

 

 

 

 

</telerik:GridImageColumn>

 

 

 

 

<telerik:GridTemplateColumn DataField="ProductName" HeaderText="ProductName" UniqueName="ProductName" AllowFiltering="True">

 

 

 

<HeaderTemplate >

 

 

 

 

<table>

 

 

 

 

<tr>

 

 

 

 

<td>

 

 

 

 

<asp:TextBox ID="txt_fProductName" runat="server" onkeydown="doFilter(this,event,'ProductName')" ></asp:TextBox>

 

 

 

 

</td>

 

 

 

 

</tr>

 

 

 

 

<tr>

 

 

 

 

<td align="center">

 

 

 

 

<asp:LinkButton ID="SortProductName" CommandName="Sort" CommandArgument="ProductName" runat="server" Text="ProductName"></asp:LinkButton>

 

 

 

 

</td>

 

 

 

 

</tr>

 

 

 

 

</table>

 

 

 

 

</HeaderTemplate>

 

 

 

<ItemTemplate>

 

 

 

 

<%

 

 

# Eval("ProductName")%>

 

 

 

</ItemTemplate>

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 

<telerik:GridTemplateColumn DataField="SupplierID" HeaderText="SupplierID" UniqueName="SupplierID" AllowFiltering="True">

 

 

 

<HeaderTemplate >

 

 

 

 

<table>

 

 

 

 

<tr>

 

 

 

 

<td>

 

 

 

 

<asp:TextBox ID="txt_fSupplierID" runat="server" onkeydown="doFilter(this,event,'SupplierID')" ></asp:TextBox>

 

 

 

 

</td>

 

 

 

 

</tr>

 

 

 

 

<tr>

 

 

 

 

<td align="center">

 

 <

 

 

asp:LinkButton ID="SortSupplierID" CommandName="Sort" CommandArgument="SupplierID" runat="server" Text="SupplierID"></asp:LinkButton>

 

 

 

 

 

 

 

</td>  

 

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate>

 

 

 

 

<%# Eval("SupplierID")%>  

 

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="CategoryID" HeaderText="CategoryID" UniqueName="CategoryID" AllowFiltering="True">

 

<HeaderTemplate >

 

<table>

 

<tr>  

 

 

 

<td>

 

<asp:TextBox ID="txt_fCategoryID" runat="server" onkeydown="doFilter(this,event,'CategoryID')" ></asp:TextBox>

 

</td>

 

</tr>

 

<tr 

 

 

<td align="center">

 

<asp:LinkButton ID="SortCategoryID" CommandName="Sort" CommandArgument="CategoryID" runat="server" Text="CategoryID"></asp:LinkButton>

 

</td>

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate> <%

 

 

 

# Eval("CategoryID")%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="QuantityPerUnit" HeaderText="Valor" UniqueName="QuantityPerUnit" AllowFiltering="True">

 

<HeaderTemplate >

 

<table>

 

<tr>

 

<td>

 

<asp:TextBox ID="txt_fQuantityPerUnit" runat="server" onkeydown="doFilter(this,event,'QuantityPerUnit')" ></asp:TextBox>

 

</td>

 

</tr>

 

<tr>

 

<td align="center">

 

<asp:LinkButton ID="SortQuantityPerUnit" CommandName="Sort" CommandArgument="QuantityPerUnit" runat="server" Text="QuantityPerUnit"></asp:LinkButton>

 

</td>

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate><%

 

# Eval("QuantityPerUnit")%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="UnitPrice" HeaderText="UnitPrice" UniqueName="UnitPrice" AllowFiltering="True">

 

<HeaderTemplate >

 

<table>

 

<tr>

 

<td>

 

<asp:TextBox ID="txt_fUnitPrice" runat="server" onkeydown="doFilter(this,event,'UnitPrice')" ></asp:TextBox>

 

</td>

 

</tr>

 

<tr>

 

<td align="center">

 

<asp:LinkButton ID="SortUnitPrice" CommandName="Sort" CommandArgument="UnitPrice" runat="server" Text="UnitPrice"></asp:LinkButton>

 

</td>

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate> <%

 

 

 

# Eval("UnitPrice")%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn DataField="UnitsInStock" HeaderText="UnitsInStock" UniqueName="UnitsInStock" AllowFiltering="True">

 

<HeaderTemplate >

 

<table>

 

<tr>

 

<td>

 

<asp:TextBox ID="txt_fUnitsInStock" runat="server" onkeydown="doFilter(this,event,'UnitsInStock')" ></asp:TextBox>

 

</td>

 

</tr>

 

<tr>

 

<td align="center">

 

<asp:LinkButton ID="SortUnitsInStock" CommandName="Sort" CommandArgument="UnitsInStock" runat="server" Text="UnitsInStock"></asp:LinkButton>

 

</td>

 

</tr>

 

</table>

 

</HeaderTemplate>

 

<ItemTemplate><%

 

 

 

# Eval("UnitsInStock")%>

 

</ItemTemplate>

 

</telerik:GridTemplateColumn>

 

</Columns>

 

</MasterTableView>

 

<ClientSettings Selecting-AllowRowSelect="true">

 

</ClientSettings>

 

<GroupingSettings CaseSensitive="false" />

 

</telerik:RadGrid>

 

 

 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 18 Oct 2010, 03:09 PM
Hi Manuel,

It is hard to determine the source of the problem based on the provided information. Please open a support ticket and send us a sample runnable project where the error can be reproduced. We will check it locally and do our best to provide a solution,

Looking forward for your reply.

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Manuel
Top achievements
Rank 1
answered on 18 Oct 2010, 04:24 PM
Hi Pavlina
I opened a support ticket.this is my ticket id 358243.
I have attached a sample project where the error can be reproduced.
Thanks

Regards
                  Manuel
0
Pavlina
Telerik team
answered on 21 Oct 2010, 04:28 PM
Hi Manuel,

Please, refer to the other support ticket post for additional information. To avoid duplicate posts, I will ask you to continue the communication there.

All the best,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Manuel
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Manuel
Top achievements
Rank 1
Share this question
or