I've got a gridview with a couple of templated columns where I use the radcombobox at edit mode. Other columns are text boxes at edit time. The problem I have is that when in edit mode and I open the combo box to change a value (or even re click the same one), and then I click away to one of the text box columns in the grid then I get a script error in the auto generated ScriptResource file.
I don't get the error if I click away to a non-edited cell and then click into the edit text box.
Error section in script file:
return
true;
},_applySelection:
function(){
if
(!this._isInVisibleContainer(this._textBoxElement)){
return
;
}
if
((Sys.Browser.agent==Sys.Browser.Opera)||!document.selection){
this
._textBoxElement.selectionStart=this._selectionStart;
this
._textBoxElement.selectionEnd=this._selectionEnd;
return
;
}
this
._textBoxElement.select();
sel=document.selection.createRange(); //ERROR IS ON THIS LINE
sel.collapse();
sel.moveStart(
"character",this._selectionStart);
sel.collapse();
sel.moveEnd(
"character",this._selectionEnd-this._selectionStart);
sel.select();
},_clearHiddenValue:
function(){
this
._hiddenElement.value="";
},_handleWheel:
function(_58){
},_setHiddenValue:
function(_59){
if
(this._hiddenElement.value!=_59.toString()){
this
._hiddenElement.value=_59;
}
this
._setValidationField(_59);
return
true;
},_setValidationField:
function(_5a){
},_updateHiddenValueOnKeyPress:
function(){
this
._updateHiddenValue();
},_updateHiddenValue:
function(){
if
(!this._textBoxElement.readOnly){
return
this._setHiddenValue(this._textBoxElement.value);
}
},_escapeNewLineChars:
function(_5b,_5c){
_5b=escape(_5b);
while
(_5b.indexOf("%0D%0A")!=-1){
_5b=_5b.replace(
"%0D%0A",_5c);
The Error : "Microsoft JScript runtime error: Unknown runtime error"
The dropdowns are using load on demand and virtual scrolling and all of that works fine providing I click away to a non editing cell before clicking to another editing control. The problem does not occur when the dropdowns are not opened and values are changed through using the keyboard up and down keys.
I've got no client side scripts running - all controls are created in code.
If I click away to another dropdown control (or even to the same one) the error is similar and it appears here:
function
(_f9,_fa){
if
(!this.get_enableTextSelection()){
return
;
}
if
((!this.get_enableLoadOnDemand())&&(this.get_readOnly())){
return
;
}
if
(this.get_inputDomElement().createTextRange){
var
_fb=this.get_inputDomElement().createTextRange();
if
(_f9==0&&_fa==0){
_fb.collapse(
true);
return
;
}
_fb.moveStart(
"character",_f9);
_fb.moveEnd(
"character",_fa);
_fb.select(); //ERROR IS ON THIS LINE
}
else{
this
.get_inputDomElement().setSelectionRange(_f9,_f9+_fa);
}
},_childRemoving:
function(_fc){
var
_fd=_fc.get_index();
if
(this._itemData){
Array.remove(
this._itemData,this._itemData[_fd]);
}
Telerik.Web.UI.RadComboBox.callBaseMethod(
this,"_childRemoving",[_fc]);
},_childRemoved:
function(_fe,_ff){
var
_100=_fe.get_element();
if
(_fe==this.get_selectedItem()){
this
.set_selectedItem(null);
this
.set_highlightedItem(null);
this
.set_text("");
The Error: "htmlfile: Could not complete the operation due to error 800a025e"
I'm running Ie8 and I've tried running it in the compatibility mode but results were the same.
I'm using Visual Studio 2008 to create the web app.
Thanks for your help,
Jo