ComboBox with optional user override

January 5th, 2009
  • Hi;

    I am loading a combobox with data from the server. I however do not want to restrict the user to the selection of one of these values. I would like them to be able to simply type over the box to enter their own custom value. I can get this far by setting the 'readonly:false' property. The problem comes in when I try to retrieve the value though.

    Anyone out there know of the correct approach?

    Thanks


  • Excellent! That works perfectly thanks.


  • If you set the valueField to be null or undefined, it should allow custom answers.

    var combo = new Ext.form.ComboBox({
    ...
    valueField: null,
    ...
    });

    // I believe this will get the correct value...
    combo.getValue();







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about ComboBox with optional user override , Please add it free.

    Posted in dballastages.com | edit