Results 1 to 3 of 3

Thread: ComboBox DisplayValue too long

  1. #1
    Sencha User
    Join Date
    Jun 2014

    Default ComboBox DisplayValue too long


    i have a problem with a combobox and a very long displayvalue. After i select a value and the cursor moves to the end, the displayed value is at the end, but i need it to be at the first position.

    how can i achieve that without have to focus the box? i already tried, to override the onBeforeBlur of the ComboBox to move the caret to the start when i leave the box, but then i get a strange behavior when leaving the box.

    Do you have an idea how i get the displayvalue to be at the first position of the text when i leave the combobox?

    I am using ExtJS 4.2.1 and i need a solution for IE 9/10/11.

    Thanks for your help


  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL


    You need to change the behavior when a value is selected, not when the field is blurred. When the field is blurred the caret isn't in the field anymore and the browser should then show the value from the start.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Jun 2014


    "the browser should then show the value from the start"

    that is exactly the problem, the box displays the value from the end and not the start

    i tried this solution (link) to move the cursor on select, but that did not work

    what i need is something to move the caret before the blur event, to get the caret back to the start when the box loses its focus (or before stop edit mode)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts