[CLOSED] Pre-select a item in custom search Comobobox in Ext 3.0

  1. #1

    [CLOSED] Pre-select a item in custom search Comobobox in Ext 3.0

    I need to show a "custom search" combobox (like this https://examples3.ext.net/#/Form/Com...Custom_Search/ ) with an item initially selected. How can I do this? I've tried "SelectedItems.Add" (in Page_Load page method) but did not work.
    Last edited by Daniil; Feb 17, 2015 at 12:56 PM. Reason: [CLOSED]
  2. #2
    Hello @sensorbox!

    I've checked the sample you linked in and, when I type something (asterisk, part of the name of a valid entry) the first entry is always selected. You are saying that you weren't able to reproduce the behavior of the example on your code?

    If the sample does not select the first entry for you, which browser/version are you using?

    EDIT: on a second thought... say you defined that first combo box on the example you pointed as cbx1. To have a value initially assigned to it, you could just do this:
    cbx1.SetValue("Bloodroot");
    As far as the result is valid, you'll be fine. The combo itself stores/shows just the search criteria.

    If this does not fit your scenario, would you share with us a simple example illustrating how it does not work, and how it should work for you?
    Last edited by fabricio.murta; Feb 10, 2015 at 3:59 AM.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Select value in custom search
    By paulc in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 14, 2014, 11:14 AM
  2. Replies: 3
    Last Post: Oct 15, 2013, 1:25 AM
  3. Custom Search
    By DanielU in forum 1.x Help
    Replies: 23
    Last Post: Mar 04, 2013, 10:54 AM
  4. [CLOSED] [1.0] Custom Search dynamic item count
    By betamax in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 09, 2010, 1:34 PM
  5. Custom Search
    By sharif in forum 1.x Help
    Replies: 0
    Last Post: Jul 14, 2009, 4:04 PM

Tags for this Thread

Posting Permissions