| 
							jaimi
							
						 | 
						
							
								  | 
								
									
									 «  on: January 20, 2015, 05:29:29 AM »  | 
								
								 | 
							  
							 
							Hi, I want to control the appearance of the pagination buttons depending on the resultset of the edatagrid. for example, if the value of result >0 then the button should be inactive or not visible. How to?
   var PferdPager = $('#edgPferd').datagrid().datagrid('getPager');     PferdPager.pagination({   showPageList: false,   showRefresh : false,   displayMsg  : '{from} bis {to} von {total} Pferden'   // Zum Editieren einschalten !!      ,buttons     :[    {iconCls:'icon-property',tooltip: 'Detail anzeigen',handler:function(){viewPferd();}}   ,{iconCls:'icon-add'     ,tooltip: 'Pferd eintragen',handler:function(){addPferd();}}   ,{iconCls:'icon-edit'    ,tooltip: 'Angaben modifizieren',handler:function(){editPferd();}}   ]  }).find('.l-btn').each(function(){    var opts = $(this).linkbutton('options');    if (opts.tooltip){       $(this).tooltip({          content: opts.tooltip       })    }  });//PferdPager 
						 |