Results 1 to 3 of 3

Thread: How to disable writing in combo box

  1. #1
    Join Date
    Apr 2009
    Posts
    68

    How to disable writing in combo box

    Can any one suggest me how to disable writing in combo box provided to the end user, I don't want to allow the user to write anything in the combo box, this box will only be allow them to use only for selecting the items displayed over there.

    How to do this please me..

    thanks for your help.

  2. #2
    Join Date
    Mar 2008
    Posts
    258

    Re: How to disable writing in combo box

    combo's onDisable is achieve thorough following code:

    Code:
    // private
        onDisable: function(){
            Ext.form.ComboBox.superclass.onDisable.apply(this, arguments);
            if(this.hiddenField){
                this.hiddenField.disabled = true;
            }
        },
    TriggerField:

    Code:
     // private
        onDisable : function(){
            Ext.form.TriggerField.superclass.onDisable.call(this);
            if(this.wrap){
                this.wrap.addClass(this.disabledClass);
                this.el.removeClass(this.disabledClass);
            }
        },

  3. #3
    Join Date
    Dec 2008
    Posts
    183

    Re: How to disable writing in combo box

    I am experiencing that his does happen via ComboBox's onDisable function:

    Code:
    onDisable: function(){
            Ext.form.ComboBox.superclass.onDisable.apply(this, arguments);
            if(this.hiddenField){
                this.hiddenField.disabled = this.disabled;
            }

Similar Threads

  1. Replies: 4
    Last Post: 29-06-2013, 11:03 AM
  2. Replies: 4
    Last Post: 02-11-2012, 12:36 AM
  3. Replies: 8
    Last Post: 01-12-2011, 08:58 PM
  4. Reliance 649 combo VS Airtel 699 combo
    By Anish-Mumbai in forum India BroadBand
    Replies: 5
    Last Post: 05-05-2010, 09:45 AM
  5. How to Disable Writing to USB Drives
    By microam_i in forum Tips & Tweaks
    Replies: 4
    Last Post: 29-01-2009, 08:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,596,178.89255 seconds with 16 queries