Easyui datagrid control display progress bar, easyuidatagrid
In the actual project, when we need to control the display progress bar when loading data in the datagrid on the front page, and the datagrid displays the progress bar only when loading data through url by default. The following code is manual control:
Open progress bar:
$ ('# SearchAddrDg'). datagrid ('loading'); // open the wait div
Close progress bar:
$ ('# SearchAddrDg'). datagrid ('loaded'); // close the loding progress bar;
If the above Code is helpful to you, please like it !! Reprint please famous source http://blog.csdn.net/songhfu/article/details/40016847!
In jquery easyui, can the datagrid Control the style of the previous column in the last column?
Yes. If styler (or: formatter) is used, is there a rowData parameter besides value? You can use the value in rowData to do it.
How to Use the datagrid in jquery-easyui to display data
$ ('# RegList'). datagrid ({
Title: 'user management ',
IconCls: 'icon-OK ',
FitColumns: true,
Nowrap: false,
SingleSelect: true,
Rownumbers: true,
Animate: true,
Collapsible: true,
Pagination: true,
PageList: [5, 10, 15],
Url: '$ {ctx}/user! Data. action ',
IdField: 'regid ',
Columns :[[
{Field: 'userename', title: 'account', width: 150 },
{Field: 'usercname', title: 'name', width: 150 },
// {Field: 'usertype', title: 'user type', width: 150,
// Formatter: function (userType ){
// If (userType = '1 ')
// Return 'Organization users ';
// If (userType = '2 ')
// Return 'Member users ';
// If (userType = '3 ')
// Return 'prosecution users ';
// Return '--';
//}
//},
// {Field: 'usersex ', title: 'gender', width: 150,
// Formatter: function (userType ){
// If (userType = '0 ')
// Return 'male ';
// If (userType = '1 ')
// Return 'femal ';
// Return '--';
//}
//},
{Field: 'mobile', title: 'phone', width: 150}
],
Toolbar :[
{
... The remaining full text>