function daftarmhswisuda(){ var removeslash = ''; for (i=0;iNo Photo'; } }] ); // Selection Model var sm_daftarmhswisuda = new Ext.grid.RowSelectionModel({ singleSelect: true }); // Grid View var gv_daftarmhswisuda = new Ext.grid.GridView({emptyText: '< Belum ada Data >'}); /** GRID PANEL */ var gp_daftarmhswisuda = new Ext.grid.EditorGridPanel({ //PAKE EditorGridPanel ds: ds_daftarmhswisuda, cm: cm_daftarmhswisuda, sm: sm_daftarmhswisuda, view: gv_daftarmhswisuda, clicksToEdit: 1, //for cell editing (single click =1, dblclick=2) forceFit: true, //autoHeight: true, autoScroll:true, //enableColumnResize: true, columnLines: true, loadMask: true, tbar:[{ xtype: 'button', id: 'btn_excel_dftr_wsd', iconCls: 'silk-save', text: ' Export To Excel', handler: function() { export_daftar_wisudawan(); } },'->',sb_daftarmhswisuda], bbar: new Ext.PagingToolbar({ store: ds_daftarmhswisuda, displayInfo: true, pageSize: pageSize, mode: 'local', displayMsg: 'Data {0} - {1} dari {2}', emptyMsg: "Belum ada data" }), }); var gp_daftarmhswisuda = RH.GPContainer1_wHeaders({ title: 'Daftar Wisudawan', iconCls:'silk-user', gridPanel: gp_daftarmhswisuda, headerLabelWidth: 140, headers: [{ xtype: 'container', layout: 'hbox', items:[{ layout:'form', labelWidth:90, labelAlign:'right', items: [ RH.ActionCombo({ id: 'cb.prodi', label: 'Program Studi', width: 300, data: ds_prodireg, key: 'kdprodi', display: 'lnmprodi', fnSelect: function(){ reloadGrid(); } }) ] },{ layout:'form', labelWidth:160, labelAlign:'right', items: [ RH.ActionCombo({ id: 'cb.smt', label: 'Tahun Akademik-Semester', width: 160, data: ds_stsmt, key: 'kdstsemester', display: 'nmsmt', fnSelect: function(){ reloadGrid(); }, }) ] }] }], }); SET_PAGE_CONTENT(gp_daftarmhswisuda); function reloadGrid(){ var kdprodi = RH.getCompValue('cb.prodi'); var kdstsemester = RH.getCompValue('cb.smt'); if(kdprodi && kdstsemester){ ds_daftarmhswisuda.reload({ params: { kdprodi: kdprodi, kdstsemester: kdstsemester }, callback: function(results){ } }); } } function export_daftar_wisudawan(){ var kdprodi = RH.getCompValue('cb.prodi'); var kdstsemester = RH.getCompValue('cb.smt'); if(kdprodi && kdstsemester){ window.location = BASE_URL + 'daftarmhswisuda_controller/exportexcelwisudawan/'+kdprodi+'/'+kdstsemester; }else{ Ext.MessageBox.alert("Info", "Program Studi dan Tahun Akademik - Semester harus diisi"); } } }