View Full Version : Empty List Items in Combo

15 Dec 2010, 4:21 AM
Hi Guys,

Can you please help me with this one ?

I am trying to populate an combo box, by explicitly sending the AJAX call using JsonStore. Below is the code for retrieving the store:

getProductTypeStore: function () {

var store = new Ext.data.JsonStore({
url: 'controllers/Combo.ashx',
baseParams: {
comboType: 'ProductType'
scope: this

return store;

I am getting below response, and assigning the above store to Combo.


But I am not able to view the TEXT value in combo dropdown, instead it just displays the empty items, i.e. if total records are 3, it displays 3 empty items in combo (see the attachment).

Any idea what could be the issue, am I missing anything ?


15 Dec 2010, 7:21 AM
R U setting displayField:'DISPLAY_VALUE' in Ur combo config?

15 Dec 2010, 10:58 PM
Yes, I am setting two parameters in Combo config

displayField: 'DISPLAY_VALUE',
valueField: 'LOOKUP_ID',
store: this.getProductTypeStore(),

Also store as call to method (mentioned in above post) that retrieves the required data.

Still its not working, what could be wrong ???

16 Dec 2010, 12:06 AM
Your data is not Json, you should use an ArrayStore instead.

16 Dec 2010, 12:14 AM
Bang !!! It worked ! I wonder how could I didn't realized that.

Thanks a lot mankz. You guys are really helpful.