dayaners
Newbie

Posts: 16
|
 |
« Reply #1 on: December 02, 2013, 07:17:30 AM » |
|
i have this for now
index: <table id="dgfor" class="easyui-datagrid" title="Selections" style="width:800px;height:400px" data-options=" view:scrollview, pageSize:20, url:'show.php', iconCls:'icon-ok', singleSelect:'true'"> <thead> <tr> <th data-options="field:'codforn',width:120">Cod</th> <th data-options="field:'name',width:350">Name</th> <th data-options="field:'selec',width:100,align:'center'" >Selecionar</th> </tr> </thead> </table>
Js: $(function(){ var dg = $('#dgfor').datagrid({remoteFilter:true,url:'teste.filter.php'}); dg.datagrid('enableFilter', [{ field:'codforn', type:'label' }, { field:'name', type:'text', op:['contains','equal'], }, { field:'selec', type:'label', }]); });
and looks like this function overwrite the url of show.php
|