manish khamar
26 Aug 2011, 5:33 AM
thanks for helping.
I have problem with selectfield.
I parse json in select field using store.
successfully i do it.
trial.json
-------------------------
[{"key":"All","value":"'Single Family Residential','Residential','Single Family','Condo/Townhouse','Condo','Townhouse','Condominium','Multi Family','Mobile Homes','Commercial and Industrial','Commercial','Commercial Lease','Income Property Residential','Investment Properties','Investment Residential','FreeStanding PUD','Business Opportunity','Lots and Land','Vacant Land','Farm and Ranch','Farm','Other','Fractional Ownership','Manufactured','New Projects','Rentals','Tenants In Common'"}]
-------------------------------------------------------------------------------------------------------
code:
xtype: 'selectfield',
id:'detailedRequest',
labelWidth:'45%',
name:'property',
label: "Property Type",
placeHolder:"Please select property type",
//value:"All",
valueField: 'value',
displayField: 'key',
store:cdata,
editable: false,
listeners: {
afterrender:{
fn: function(combo, value){
//Ext.getCmp('detailedRequest').setValue();
}
}
}
-----------------------------------------------------------------------------------
Now i want Display first key of json in place of placeholder.
Means here it show 'All' instead of 'Please select property type'.
Please help me as soon as.I waste my lots of time behind it.
So plsssssss.:(
I have problem with selectfield.
I parse json in select field using store.
successfully i do it.
trial.json
-------------------------
[{"key":"All","value":"'Single Family Residential','Residential','Single Family','Condo/Townhouse','Condo','Townhouse','Condominium','Multi Family','Mobile Homes','Commercial and Industrial','Commercial','Commercial Lease','Income Property Residential','Investment Properties','Investment Residential','FreeStanding PUD','Business Opportunity','Lots and Land','Vacant Land','Farm and Ranch','Farm','Other','Fractional Ownership','Manufactured','New Projects','Rentals','Tenants In Common'"}]
-------------------------------------------------------------------------------------------------------
code:
xtype: 'selectfield',
id:'detailedRequest',
labelWidth:'45%',
name:'property',
label: "Property Type",
placeHolder:"Please select property type",
//value:"All",
valueField: 'value',
displayField: 'key',
store:cdata,
editable: false,
listeners: {
afterrender:{
fn: function(combo, value){
//Ext.getCmp('detailedRequest').setValue();
}
}
}
-----------------------------------------------------------------------------------
Now i want Display first key of json in place of placeholder.
Means here it show 'All' instead of 'Please select property type'.
Please help me as soon as.I waste my lots of time behind it.
So plsssssss.:(