user2693999
user2693999

Reputation: 21

How to set permanent placeholder for selectfield in sencha touch 2 even after selecting the record

It always appears as default like this: -----selection-----.

Even after selecting selectfield it remains same.

My code:

xtype: 'selectfield',
    id:'selMyGroupNames',
    left:'1%',
    top : '14%',
    width:'38%',
    label : 'My Groups:',
    store:'MyGroupNames',
    valueField:'fid',
    displayField:'name',
    autoSelect:false,
    labelWidth:'45%',
    style: {
        background:'#576870',
        fontSize :'16px'
    },
    placeHolder:'- - - New - - -'

Upvotes: 2

Views: 570

Answers (1)

Viswa
Viswa

Reputation: 3211

I tested your code.

First it will display -----selection----- in placeHolder.

If you select first option, placeHolder remains the same. It's bug and fixed in senchaTouch 2.3

See here

If you select any option other than first, everything works good.

Upvotes: 1

Related Questions