Show Posts
				 | 
			 
			
				| 
					Pages: [1] 
				 | 
			 
		 
		
			
				
					
						
							| 
								1
							 | 
							
								 General Category / EasyUI for jQuery / Pager always missing when i'm using .datagrid('disableFilter')
							 | 
							
								on: July 08, 2016, 09:00:36 AM
							 | 
						 
						
							
								Hello guys, I have problem with pager pagination on datagrid     because Pager always missing when i'm using .datagrid('disableFilter'). f_mod=0; var pager = $('#dg-module').datagrid('getPager');    // get the pager of datagrid pager.pagination({     showPageList:true,     buttons:[{         iconCls:'icon-search',         handler:function(){             if(f_mod == 0) { $('#dg-module').datagrid('enableFilter'); f_mod=1; }             else { $('#dg-module').datagrid('removeFilterRule'); $('#dg-module').datagrid('disableFilter'); f_mod=0; }                  }     }],     onBeforeRefresh:function(){         alert('before refresh');         return true;     } });
  how when removing the filter, pager pagination is not missing... thx     
							 | 
						 
						
							| 
							 | 
						 
					 
				 | 
			 
		 
		
		
		
		
			
				
					
						
							| 
								5
							 | 
							
								 General Category / EasyUI for jQuery / Re: Problem MergeCells on Footer Datagrid
							 | 
							
								on: November 16, 2015, 07:52:23 PM
							 | 
						 
						
							
								I have 2 types of data output : 1.Data footer does not appear {"total":10,"rows":[{"kd_item":"21","nm_item":"Bahan Sutera No.01","satuan":"m","stok":"4380","hpp":"21000","total":"91980000","c_date":"2015-11-12 20:47:51.514","m_date":"2015-11-12 23:24:41.624","b1":"10004","b2":null,"b3":null,"b4":null},{"kd_item":"16","nm_item":"bahan katun import","satuan":"m","stok":"9980","hpp":"17000","total":"169660000","c_date":"2015-10-29 08:48:03.761","m_date":"2015-11-02 23:53:43.262","b1":null,"b2":null,"b3":null,"b4":null},{"kd_item":"11","nm_item":"Bahan Kaos 20s","satuan":"m","stok":"9825","hpp":"9000","total":"88425000","c_date":"2015-10-29 08:48:03.014","m_date":"2015-11-13 21:26:37.976","b1":"30002","b2":null,"b3":null,"b4":null},{"kd_item":"10","nm_item":"Bahan Gamis","satuan":"m","stok":"9850","hpp":"18500","total":"182225000","c_date":"2015-10-29 08:48:03.013","m_date":"2015-11-13 22:34:56.104","b1":"20001","b2":null,"b3":null,"b4":null},{"kd_item":"9","nm_item":"Bahan Kaos 30s","satuan":"m","stok":"9785","hpp":"9000","total":"88065000","c_date":"2015-10-29 08:48:03.011","m_date":"2015-11-13 22:11:02.809","b1":"30001","b2":null,"b3":null,"b4":"10003"},{"kd_item":"8","nm_item":"Bahan baju Muslim 01","satuan":"m","stok":"9900","hpp":"21000","total":"207900000","c_date":"2015-10-29 08:48:02.98","m_date":"2015-11-06 00:02:25.7","b1":null,"b2":"30001","b3":null,"b4":""},{"kd_item":"6","nm_item":"Bahan Jeans Hitam","satuan":"m","stok":"9965","hpp":"23000","total":"229195000","c_date":"2015-10-29 08:47:45.954","m_date":"2015-11-06 00:28:33.372","b1":"30001","b2":null,"b3":null,"b4":null},{"kd_item":"5","nm_item":"Bahan batik","satuan":"m","stok":"9900","hpp":"15000","total":"148500000","c_date":"2015-10-29 08:47:45.926","m_date":"2015-11-15 00:13:48.643","b1":"10003","b2":"13","b3":null,"b4":null},{"kd_item":"2","nm_item":"bahan levis","satuan":"m","stok":"10000","hpp":"25000","total":"250000000","c_date":"2015-10-29 08:47:38.228","m_date":null,"b1":"","b2":null,"b3":null,"b4":null},{"kd_item":"1","nm_item":"bahan katun","satuan":"m","stok":"9935","hpp":"12000","total":"119220000","c_date":"2015-10-29 08:47:38.169","m_date":"2015-11-06 09:48:49.867","b1":"30001","b2":"20001","b3":"10003","b4":"10001"}],"footer":{"stok":93520,"nm_item":"Total Stok"}}
 2.Data footer appears {"total":10,"rows":[{"kd_item":"21","nm_item":"Bahan Sutera No.01","satuan":"m","stok":"4380","hpp":"21000","total":"91980000","c_date":"2015-11-12 20:47:51.514","m_date":"2015-11-12 23:24:41.624","b1":"10004","b2":null,"b3":null,"b4":null},{"kd_item":"16","nm_item":"bahan katun import","satuan":"m","stok":"9980","hpp":"17000","total":"169660000","c_date":"2015-10-29 08:48:03.761","m_date":"2015-11-02 23:53:43.262","b1":null,"b2":null,"b3":null,"b4":null},{"kd_item":"11","nm_item":"Bahan Kaos 20s","satuan":"m","stok":"9825","hpp":"9000","total":"88425000","c_date":"2015-10-29 08:48:03.014","m_date":"2015-11-13 21:26:37.976","b1":"30002","b2":null,"b3":null,"b4":null},{"kd_item":"10","nm_item":"Bahan Gamis","satuan":"m","stok":"9850","hpp":"18500","total":"182225000","c_date":"2015-10-29 08:48:03.013","m_date":"2015-11-13 22:34:56.104","b1":"20001","b2":null,"b3":null,"b4":null},{"kd_item":"9","nm_item":"Bahan Kaos 30s","satuan":"m","stok":"9785","hpp":"9000","total":"88065000","c_date":"2015-10-29 08:48:03.011","m_date":"2015-11-13 22:11:02.809","b1":"30001","b2":null,"b3":null,"b4":"10003"},{"kd_item":"8","nm_item":"Bahan baju Muslim 01","satuan":"m","stok":"9900","hpp":"21000","total":"207900000","c_date":"2015-10-29 08:48:02.98","m_date":"2015-11-06 00:02:25.7","b1":null,"b2":"30001","b3":null,"b4":""},{"kd_item":"6","nm_item":"Bahan Jeans Hitam","satuan":"m","stok":"9965","hpp":"23000","total":"229195000","c_date":"2015-10-29 08:47:45.954","m_date":"2015-11-06 00:28:33.372","b1":"30001","b2":null,"b3":null,"b4":null},{"kd_item":"5","nm_item":"Bahan batik","satuan":"m","stok":"9900","hpp":"15000","total":"148500000","c_date":"2015-10-29 08:47:45.926","m_date":"2015-11-15 00:13:48.643","b1":"10003","b2":"13","b3":null,"b4":null},{"kd_item":"2","nm_item":"bahan levis","satuan":"m","stok":"10000","hpp":"25000","total":"250000000","c_date":"2015-10-29 08:47:38.228","m_date":null,"b1":"","b2":null,"b3":null,"b4":null},{"kd_item":"1","nm_item":"bahan katun","satuan":"m","stok":"9935","hpp":"12000","total":"119220000","c_date":"2015-10-29 08:47:38.169","m_date":"2015-11-06 09:48:49.867","b1":"30001","b2":"20001","b3":"10003","b4":"10001"},{"stok":93520,"nm_item":"Total Stok"}],"footer":{"stok":93520,"nm_item":"Total Stok"}}
 what the data is correct ??  
							 | 
						 
						
							| 
							 | 
						 
					 
				 | 
			 
		 
		
		
			
				
					
						
							| 
								7
							 | 
							
								 General Category / EasyUI for jQuery / Problem MergeCells on Footer Datagrid
							 | 
							
								on: November 16, 2015, 09:11:16 AM
							 | 
						 
						
							
								i don't know where my fault from merge cell on datagrid. can you help me. $('#tbl-kartu-stok').datagrid({                 url:'<?=base_url()?>ks/c_kartu_stok/data_kartu_stok/<?=$nama?>',                 toolbar:'#toolbar',                 pagination: 'true',                 pageSize:'20',                 remoteFilter: 'true',                 rownumbers: 'true',                 showFooter:'true',                 singleSelect: 'true',                 columns:[[                     {field:'kd_item',title:'Kode',width:70,halign:'center',align:'right', sortable:true},                     {field:'nm_item',title:'Nama bahan',width:210,halign:'center',sortable:true},                     {field:'satuan',title:'Satuan',width:120,halign:'center',align:'center',sortable:true},                     {field:'stok',title:'Stok',width:80,sortable:true,halign:'center',align:'right', formatter: function(value,row,index){                             return accounting.formatNumber(value);                     }},                     {field:'hpp',title:'HPP',width:110,sortable:true,halign:'center',align:'right', formatter: function(value,row,index){                             return accounting.formatNumber(value);                     }},                     {field:'total',title:'Total',width:110,sortable:true,halign:'center',align:'right', formatter: function(value,row,index){                             return accounting.formatNumber(value);                     }},                     {field:'c_date',title:'Create Date',width:150,halign:'center',align:'center',sortable:true},                     {field:'m_date',title:'Modified Date',width:150,halign:'center',align:'center',sortable:true}                 ]]             });this for mergecells : $('#tbl-kartu-stok').datagrid('mergeCells', {                 index: 1,                 field: 'nm_item',                 colspan: 2,                 type: 'footer'             }); output :  
							 | 
						 
						
							| 
							 | 
						 
					 
				 | 
			 
		 
		
			
				
					
						
							| 
								8
							 | 
							
								 General Category / EasyUI for jQuery / how show output pdf from tcpdf in window ?
							 | 
							
								on: November 10, 2015, 03:03:24 AM
							 | 
						 
						
							
								i have problem with window jeasyui, i can't show output from tcpdf in window. but if i replace url in browser, it normal & show my output pdf. this my script : $('#ff-pembelian').form('submit',{             onSubmit: function(){                 return $(this).form('validate');             },             success: function(){             	var url = '<?=base_url()?>lp/c_rpt_pembelian/rpt_general';             	$('#win').window({ 			        title: 'Print Out Laporan Pembelian', 			        width:'60%', 			        height:'60%', 			        modal:true 			    });  			    $('#win').window('refresh', url);             }         });but this output on window :   
							 | 
						 
						
							| 
							 | 
						 
					 
				 | 
			 
		 
		
			
				
					
						
							| 
								9
							 | 
							
								 General Category / EasyUI for jQuery / Re: Datagrid : custom data combobox when insert row
							 | 
							
								on: October 29, 2015, 08:50:33 PM
							 | 
						 
						
							| 
								 Thanks Jarry, It's work. But i'm insert on 'onBeginEdit'.
  onBeginEdit:function(rowIndex){             var editors = $('#tbl-upah_list').datagrid('getEditors', rowIndex);             var n0 = $(editors[0].target);              var n1 = $(editors[1].target);             var n2 = $(editors[2].target);              var n3 = $(editors[3].target);              var n4 = $(editors[4].target); 
              n1.combobox({                 // get id from header #cc-bahan                 url: 'get_ukuran/'+$('#cc-bahan').combobox('getValue')                                  });
              n4.numberbox({                  editable:false,                 readonly:true             });
          } 
							 | 
						 
						
							| 
							 | 
						 
					 
				 | 
			 
		 
		
		
		
		
			
				
					
						
							| 
								13
							 | 
							
								 General Category / EasyUI for jQuery / Problem edit currency on datagrid
							 | 
							
								on: October 29, 2013, 07:40:46 PM
							 | 
						 
						
							| 
								 I am using a DataGrid to call a column from a database with the results that I have modified. suppose the original data is 12000 and after my modifications to 12,000.00 (without changing the data in the database).
  But if I want to edit the data in the DataGrid with the "editing in the DataGrid" why when clicked 2x the value changed to 12 and not 12000. Is there a way so that when I click 2x then the value is automatically changed to 12000?
  please help me thank you 
							 | 
						 
						
							| 
							 | 
						 
					 
				 | 
			 
		 
		
				 |