I have this code in my application, but it does not load any data. Data is accessible, but due to being displayed in my gridpanel, anyone knows, why?
Ext.onReady (function () {Ext.QuickTips.init (); Ext.form.Field.prototype MsgTarget = 'side'; var btnAdd = new Ext.Button ({id: 'BtnAdd', text: 'addiconer', iconcls: 'application_add', handler: function (s) {}}) var btnedit = new extension button ({id: 'btnEdit', text: 'editar', iconCls: Application_edit ', handler: function (s) {}} var btnRemove = new Ext.Button ({id:' btnRemove ', text:' immense ', IOCLCL:' application_delete ', handler: function (s) {}} ); Var tbar = new Ext.Toolbar ({items: [btnAdd, btnEdit, btnRemove}}) formforms = new Ext.FormPanel ({height: 100}); Var store = new Ext.data.JsonStore ({RemoteTort: True, idProperty: 'ContentId', root: 'row Ø 'Total property:' results', field: [{name: 'ContentId', type: 'int'}, {name: 'name'}, {name: 'version'}, {name: 'state'} , {Name: 'created time'}, {name: 'publication date'}, {name: 'created user'}, {name: 'publishedBUUSAR'}], proxy: new extension.Data.ScriptTagsProxy ({url: '/ Admin / author'})}); Store.setDefaultSort ('ContentId', 'desc'); Var paging = new Ext.PagingToolbar ({store: store, pageSize: 25, displayInfo: true, displayMsg: 'foam encodroados {2} registrost. MostRadro {0} D {1}', empty message: "New registration registration." }); Var Grid = New Ext.grid.GridPanel ({ID: 'Grid', Height: 700, Store: Store, Load Mask: True, Loading Text: 'Carangado ...', Autohite: True, Cms: New Extension. Grid Column Model (IP: 'name', datindex: 'name', header: 'title', (id: 'content id', dataindex: 'content id', header: 'identif.', Width: 60, sorted: true] , {Id: 'name', dataindex: 'title' width: 75, sorted: true}, {id: 'version', dataindex: 'version', header: 'ss 'Data', width: 75, sorted: true}, {id: 'created date', 'datindex': 'state', dataindex: 'state' title, 'width: 75, sorted: true},' 'Made Time', Header: 'Data Day Crioco', width: 85, sorted: true}, {id: 'published time', dataindex: 'publication date', header: 'data de publiccau', width: 75, sorted: True}, {id: 'created created user', datindex: 'created user', header: 'krodo por', width: 7 5, sorted: true}, {id: 'publisher', dataindex: 'publisher', header: 'publicno por', width: 85, sorted: true}]), stripe: true, see configure: {ForceFit: true }, Bbar: paging}); Var panel = new Ext.Panel ({id: 'panel', renderTo: Ext.getBody (), Layout: 'fit', tbar: tbar, item: [grid]}); Store.load (); // data store load trigger}};
You should not use a ScriptTagProxy if you read docs, you will see that It is used only in limited cases to obtain context from a remote server in a particular format.
If you want an HttpProxy instead
Comments
Post a Comment