Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-04-2009
Member
 
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.
Reply With Quote
  #2  
Old 20-04-2009
Member
 
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);
        }
    },
Reply With Quote
  #3  
Old 20-04-2009
Member
 
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;
        }
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to disable writing in combo box"
Thread Thread Starter Forum Replies Last Post
Best plan between BB Home Combo ULD 750 and BBG FN Combo 500 of BSNL TECHi India BroadBand 4 29-06-2013 11:03 AM
How to disable auto-capitalization of first letter in Outlook eMail writing? Illeana Windows XP Support 4 02-11-2012 12:36 AM
Which plan is good BSNL plan from BBG FN Combo 600 or BB Home Combo UL 750? SupaBoy India BroadBand 8 01-12-2011 08:58 PM
Reliance 649 combo VS Airtel 699 combo Anish-Mumbai India BroadBand 5 05-05-2010 09:45 AM
How to Disable Writing to USB Drives microam_i Tips & Tweaks 4 29-01-2009 08:39 AM


All times are GMT +5.5. The time now is 12:58 AM.