Easyui datagrid control display progress bar, easyuidatagrid

Source: Internet
Author: User

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>
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.