PDA

View Full Version : Data not displaying in a pickerslot



DonRul
1 May 2012, 7:43 PM
I have a picker with a single slot that I am trying to bind to a store. I didn't see the store in the properties in Architect but the documentation says that it is a property so I set it. When I filter the store I get a refresh event on the pickerslot and the dataview looks fine but for some reason no data shows in the pickerslot.

[PHP] {
xtype: 'picker',
height: 200,
id: 'drugpicker',
ui: '',
layout: {
type: 'default'
},
scrollable: 'vertical',
slots: [
{
xtype: 'pickerslot',
id: 'drugpickerslot',
itemId: 'mypickerslot',
itemTpl: [
'<div>Test DrugName {DrugName1}</div>'
],
name: 'DrugPickerSlot',
title: 'Drug Picker',
store: 'DrugNameStore'
}
]
}PHP]

DonRul
2 May 2012, 1:25 PM
I also tried this to no avail


pickerSlot.setData( [
{text: 'DrugName1', value: 'Alacort'},
{text: 'DrugName1', value: 'Asprin'},
{text: 'Drugname1', value: 'Zeplinol'}
]);