change the url of easyui datagrid on button click -
i'm using easyui datagrid
i added new button populate datagrid set of data based on row selected.
here button:
a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" onclick="view-breakdown()">view breakdown</a>
and table:
<table id="dg" title="my users" class="easyui-datagrid" style="width:980px;height:370px;" url="get_users.php" toolbar="#toolbar" pagination="true" rownumbers="true" fitcolumns="true" singleselect="true" height="auto";> <thead> <tr> <th field="item_group_desc" width="50">item description</th> </tr> </thead> </table>
i want function view_breakdown() value of item_group_desc , change url of table "breakdown.php" how can this? in advance
try this,
view_breakdown() { $('#dg').datagrid({ url:'breakdown.php'}); }
Comments
Post a Comment