[CLOSED] Combo with Templates and Ajax

  1. #1

    [CLOSED] Combo with Templates and Ajax

    Have a questions about : https://examples1.ext.net/#/Form/Com...Custom_Search/ example:


    What clears the value any time user clicks aside and do not pick an item from the list?

    In my example what happens is that when user enters the searching criteria FOR THE FIRST TIME ONLY and after results are returned - the combo value being SET TO INITIAL VALUE (set on page load), which makes a problem since that (value, text) does not exists in the store anymore - a new store is created with the searching results only, so I have a value displayed instead of text.

    On any subsequent searches the searching criteria is not replaced with anything after search results returned, so if user clicks aside the irregular value have been saved to the combo - fixed that with the clearing the combo if value does not exist in the store using the Change Listener.
    Last edited by Daniil; Dec 02, 2011 at 1:35 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Quote Originally Posted by deejayns View Post
    What clears the value any time user clicks aside and do not pick an item from the list?
    The default ForceSelection="true".

    You can override it setting up ForceSelection="false".

    See also:
    http://docs.sencha.com/ext-js/3-4/#!...forceSelection
  3. #3
    well the thing is that both:

    
     Me.TypeAhead = False
     Me.ForceSelection = False

    are set to false, if I check on client side it says so as well...
  4. #4
    I've tried to set ForceSelection="false" in the example you mentioned:
    https://examples1.ext.net/#/Form/Com...Custom_Search/
    and a value is not cleared on blur.

    So, please provide your test case.
  5. #5
    Ok agree with you, so you can close this one. I've reopened a new forum thread, unfortunately it's an easy task to provide you an example.

    Thanks.

Similar Threads

  1. Binding ajax based combo from the code behind
    By verbatimbot in forum 1.x Help
    Replies: 0
    Last Post: Apr 06, 2011, 2:02 PM
  2. Example Ajax Linked Combo don't worked
    By vooka in forum 1.x Help
    Replies: 3
    Last Post: Jul 11, 2010, 7:00 PM
  3. Ajax linked combo box in Grid control
    By vs.mukesh in forum 1.x Help
    Replies: 0
    Last Post: Jul 01, 2010, 10:06 AM
  4. combo box change ajax event
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Sep 30, 2009, 9:46 AM
  5. [CLOSED] Combo with Ajax and Trigger
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 16, 2009, 2:02 PM

Tags for this Thread

Posting Permissions