function getMhsSyaratSidang(){ /** STORES */ var ds_smtsyaratsidang = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'mahasiswa_controller/get_smtsyaratsidang', method: 'POST', }), totalProperty: 'results', autoLoad : false, root: 'data', fields: [ , { name: 'kdstsemester' } , { name: 'nmthnakademik' } ] }); var ds_grid = new Ext.data.JsonStore({ proxy: new Ext.data.HttpProxy({ url: BASE_URL + 'mahasiswa_controller/get_klkpsyaratsidang', method: 'POST', }), totalProperty: 'results', autoLoad : false, root: 'data', fields: [ , { name: 'kdsyaratsidang' } , { name: 'nmsyaratsidang' } , { name: 'deskripsi' } , { name: 'kdstsemester' } , { name: 'cek' ,type:'bool'} ] }); var cm = new Ext.grid.ColumnModel({ columns: [ new Ext.grid.RowNumberer({width: 35}), { header: RH.h3('Syarat Sidang'), width: 500, dataIndex: 'nmsyaratsidang', sortable: true },{ xtype: 'checkcolumn', header: RH.h3('Check List'), width: 100, dataIndex: 'cek', sortable: true, processEvent : function(name, e, grid, rowIndex, colIndex){ } }] }); var cari_data_nya = [new Ext.ux.grid.Search({ iconCls: 'btn_search', minChars: 1, autoFocus: true, autoHeight: true, position: 'top', mode: 'local', width: 200 })]; var grid_nya = new Ext.grid.GridPanel({ id: 'gp.grid', ds: ds_grid, cm: cm, sm: new Ext.grid.RowSelectionModel({ singleSelect: true}), view: new Ext.grid.GridView({ emptyText: '< Belum ada Data >'}), //forceFit: true, //autoHeight: true, width: 720, frame: true, border: true, tbar: [{ xtype: 'textfield', hidden: true, id: 'paramnimsyrtsidang', validator: function(val){ ds_smtsyaratsidang.setBaseParam('nim', val); ds_smtsyaratsidang.load(); } }, { text: "Tahun Akademik - Semester" }, { xtype: 'combo', id: 'thnakademiksyrtsidang', name: 'thnakademiksyrtsidang', width:150, store: ds_smtsyaratsidang, triggerAction: 'all', editable: false, valueField: 'kdstsemester', displayField: 'nmthnakademik', forceSelection: true, submitValue: true, emptyText: 'Pilih...', hiddenName: 'h_thakademik', listeners: { select: function(c, r, i) { ds_grid.setBaseParam('kdstsemester', r.get("kdstsemester")); ds_grid.setBaseParam('nim', Ext.getCmp('paramnimsyrtsidang').getValue()); ds_grid.load({ scope : this, callback: function(records, operation, success) { } }); } }, typeAhead: true, mode: 'local', emptyText: 'Belum Dipilih...', selectOnFocus: true }], autoSizeColumns: true, enableColumnResize: true, enableColumnHide: false, enableColumnMove: false, enableHdaccess: false, columnLines: true, loadMask: true, autoScroll: true, height: 400, }); var gSyaratSidang = { //new Ext.form.FormPanel({ xtype: 'panel', //'container', id: 'content.syaratsidang', layout: 'fit', items: [grid_nya] }; return gSyaratSidang; }