user2877989
user2877989

Reputation: 703

Sencha Touch how to set selected item in selectfield

I'm using Sencha Touch 2.3.1. How to set an select item in a selectfield ? It's seem no method to support this. I don't want do the trick set an Placeholder to the selectfield.

I have tried to Google it. But it's seem nobody talk about this.

Upvotes: 0

Views: 2240

Answers (1)

Thiem Nguyen
Thiem Nguyen

Reputation: 6365

Obviously it supports.

The value of the Ext.field.Select itself is the value of the selected item. So, you can either set the initial value or dynamically change it at anytime with the value config, via setValue method.

Upvotes: 2

Related Questions