Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8996109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:42:35+00:00 2026-06-15T23:42:35+00:00

Alhough it sounds as it doesn’t make any sense, it does if I get

  • 0

Alhough it sounds as it doesn’t make any sense, it does if I get it to work…

What I’m trying to do is get the combo to do nothing, nothing at all… so I managed to stop it from adding the record to the selected records list. But I can’t find the way to stop it from painting the item blue.
The best way to understand what I’m trying to do is check the live preview in the ExtJS Docs page, and see how if you select an item in the dropdown list it goes blue although it doesn’t add it to the selectedRecords list.

Here is the url to the ExtJS Docs page…

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.ComboBox

For those of you not familiar with the tool, just look for the Code Editor there, paste this code and click Live Preview.

// The data store containing the list of states
var states = Ext.create('Ext.data.Store', {
    fields: ['abbr', 'name'],
    data : [
        {"abbr":"AL", "name":"Alabama"},
        {"abbr":"AK", "name":"Alaska"},
        {"abbr":"AZ", "name":"Arizona"}
    ]
});

// Create the combo box, attached to the states data store
Ext.create('Ext.form.ComboBox', {
    fieldLabel: 'Choose State',
    store: states,
    queryMode: 'local',
    displayField: 'name',
    valueField: 'abbr',
    multiSelect:true,
    renderTo: Ext.getBody(),
    onListSelectionChange:function(){
        console.log('Do nothing');
    } 
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:42:35+00:00Added an answer on June 15, 2026 at 11:42 pm

    Is this what you are looking for?

    onListSelectionChange:function(){
        this.picker.getSelectionModel().deselectAll();
    } 
    

    See it working here: http://jsfiddle.net/lontivero/5Ftrf/1/

    Update
    If you want to keep the previously selected items as they are, you could try with this. It will prevent only new selections.

    onListSelectionChange:function(){
            var lastSelected = this.picker.getSelectionModel().lastSelected;
            itemNode = this.picker.getNode(lastSelected || 0);
            if (itemNode) {
                this.picker.getSelectionModel().deselect(lastSelected );
            }        
    } 
    

    in jsfiddle: http://jsfiddle.net/lontivero/5Ftrf/2/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load Skyscanner API dynamically but it doesn't seem to work.
I know that some devices headphone ports (maybe all of them? any reference here
I have an idea that sounds like it might work but I'm not entirely
I'm trying to get a handle on how OOP is done in Lua, and
This time, my question is as simple as it sounds... how do you get
Although the classic ASP method of server-side includes works in ASP.NET, I get the
Although obviously not all scenarios can be covered by a single design, is it
This sounds like a newbie question, but I have a couple of Applications where
I'm looking for any webservice client that can be run inside an OSGi container
At work, we're working on a dozen Java OSGi bundles, each of which has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.