2
는 (어떻게 저장소로 extjs라는 콤보 상자에 대한 데이터 테이블 할당)데이터 바인딩 (SQL)
는 (어떻게 저장소로 extjs라는 콤보 상자에 대한 데이터 테이블 할당)데이터 바인딩 (SQL)
기본 예제는 다음과 같이해야합니다 :
var combo = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
store: new Ext.data.JsonStore({
reader: new Ext.data.JasonReader ({
fields: [ 'myId', 'displayText' ],
root: 'rows'
}),
proxy: new Ext.data.HttpProxy ({
url: 'path/to/your/script.aspx'
})
valueField: 'myId',
displayField: 'displayText'
});
곳과 같은 /path/to/your/script.aspx 데이터를 반환 :
{"success":true,"total":4,"rows":[
{"myId":"1","displayText":"Option 1"},
{"myId":"2","displayText":"Option 2"},
{"myId":"3","displayText":"Option 3"},
{"myId":"4","displayText":"Option 4"}
]}