TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
BKS Saha
NA
44
18.7k
How to store jsondata in combobox ?
Mar 13 2018 6:10 AM
I have already got data, but how i assign data load in combo box.
items: [
{
xtype: 'label',
text: 'Country',
style: 'width: 90px'
},
{
xtype: 'combo',
id: 'cmblocation',
width: 211,
displayField: 'name',
valueField: 'id',
store: land,
emptyText: 'Select Location',
allowBlank: false,
listeners: {
afterrender: function () {
Ext.Ajax.request({
url: 'http://localhost:58316/Test.asmx/GetAll',
method: 'GET',
headers: { 'Content-Type': 'application/json' },
success: function (response) {
var data = Ext.decode(Ext.decode(response.responseText).d);
land: new Ext.data.JsonStore({
data: data,
fields: ['Id', 'Name']
//console.log(data);
})
}
})
}
}
}
]
}],
Reply
Answers (
1
)
Related To Quiz Application using jsp ,javascript, jdbc.
How to Delete, Edit array items from Javascript