Error in Grid with RadComboboxes in edit mode

9 posts, 0 answers
  1. Jo
    Jo avatar
    1 posts
    Member since:
    Nov 2007

    Posted 06 Jul 2009 Link to this post

    Hi,

    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

  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 09 Jul 2009 Link to this post

    Hello Jo,

    Can you please verify that you are using the latest version 2009.2.701 of RadControls for ASP.NET AJAX in your project? Furthermore, does the issue appear under IE browser only or occurs under Gecko-based browsers as well? You may also test whether removing the RadComboBox instance and replacing it with regular MS DropDownList control makes a difference in this case.

    Based on your findings, we can track down the reason for the erratic behavior and address it accordingly.

    Kind regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. pheld
    pheld avatar
    5 posts
    Member since:
    Mar 2007

    Posted 04 Aug 2009 Link to this post

    I am also having the same error with IE8 and RadComboBox on a form with related radComboBoxes (one selection depends on another combobox selection).  I am using RadTools version 2009.2.701.35 and Visual Studio 2008 version 9.0.30729.1.  I replaced the RadComboBox with a standard combobox, and the error went away.

    No error occurs with Firefox 3.0.13.

    Is there a hotfix for this?
    TIA.
    --Patti
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 05 Aug 2009 Link to this post

    Hello pheld,

    Have you checked this code library: Related RadComboBoxes in RadGrid?

    Kind regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. newbie
    newbie avatar
    355 posts
    Member since:
    Feb 2008

    Posted 11 Aug 2009 Link to this post

    Hi,

    I am having a similar issue.
    I have a radcombobox in the filtertemplate of a grid. When i change something in the dropdown and then click on the text box i get the same error as below. I have SelectionOnFocus ="CaretToEnd" for the textbox. If I use a standard asp.net control i do not get this error.

    Do you have a resolution for this?

    this is really buggin the client, please help.
  7. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 14 Aug 2009 Link to this post

    Hello,

    I suggest that you open a support ticket and attach a sample project there because I could not reproduce the problem locally.

    Kind regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Elias
    Elias avatar
    12 posts
    Member since:
    Apr 2009

    Posted 02 Oct 2009 Link to this post

    I have the same error but I used the radcombobox not in gridview.
    1. I place a radcombobox in my aspx page.
    2. bind the radcombobox with desired data
    3. When index change I go to DB to search by the item selected some info to load a label
    4. When I select again another item to see the (N/X) Items label info, the error appears

    see attachtments

    I use to tes IE8, Telerik.Web.UI.dll Version 2009.1.402.35

    I dont know why but when I clear the Location Id Textbox and change the combobox item the error appears too. Im pretty sure that the radcombobox (item id) and the radtextbox (location Id) has no relationship between them. The only relation that radcombobox (item id)  has is with the label next to it (0/3 or 5/5).

  9. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 08 Oct 2009 Link to this post

    Hi Elias,

    I am not sure how to reproduce the problem. It should work as expected. Can you please open a support ticket and attach a simple project there? It will help us find a solution faster.

    Sincerely yours,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  10. Taburetka Kekc
    Taburetka Kekc avatar
    10 posts
    Member since:
    Aug 2009
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017