1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    30
    Vote Rating
    0
    namrms is on a distinguished road

      0  

    Default change config on combo at runtime

    change config on combo at runtime


    Hi,
    I would like to keep a combo box component non editable initially(at this point the store is not loaded), Make it editable only on load of the corresponding store.

    How do I change the config on the fly ?
    Using extJS version 4

    Regards,
    Namratha

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    30
    Vote Rating
    0
    namrms is on a distinguished road

      0  

    Default


    I am aware of the setEditable(boolean) method , However I am looking I want to have the config as described below :

    1)when combo store is empty : editable : false,typeAhead:false,selectOnFocus : false
    2)when combo store is loaded : editable : true,typeAhead:true,selectOnFocus : true

    so basically how to change the type ahead and selectOnFocus configs..?