Results 1 to 2 of 2

Thread: picker

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    13
    Vote Rating
    0
      0  

    Default Answered: picker

    Hi,

    i am using picker field in form panel. can anyone pls help how the selected value in the picker can be assigned to text box? if i create a pickerfield with {xtype:'pickerfield'} as similar to textfield creation its throwing error as xtype is not registered.hence i create pickerfield in a separate variable and am showing it on the change event of a textbox.but i dont know how to set the selected value once the user clicks 'done' button. can any one tell me whts wrong am doing here?

    var picker1251=new Ext.Picker({
    id:'picker1',
    floating: true,
    width:150,
    slots: [
    {
    title: '',
    store: app.stores.datas,
    displayField: 'dataID'
    }
    ],
    });

    My requirement is user should be able to pick certain values from the popup. can any one let me know picker /search field which is best option to have. because in picker there's no search option. but in search field will i be able to get the binded values when user starts typing in the textfield (similar to google)...

    Thanks

  2. The picker has a 'pick' event that fires when a slot has been picked so therefore you can then update the value of the textfield.

  3. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    The picker has a 'pick' event that fires when a slot has been picked so therefore you can then update the value of the textfield.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •