This article is a mirror article of machine translation, please click here to jump to the original article.

View: 21701|Reply: 2

[EasyUI] JQuery EasyUI DataGrid refreshes data content regularly

[Copy link]
Posted on 10/29/2015 10:09:52 AM | | | |


Because the project needs to refresh the data of the meeting list every few seconds, and then check the code of DataGrid to refresh the content regularly from Baidu on the Internet:

As follows:

js code:
  1. var sec = 0;
  2.         timerID = setInterval("Reflash()",10000);
  3.         function Reflash(){
  4.             $('#dg').datagrid('reload');
  5.         }
Copy code


I found a problem with the flashing refresh screen. Baidu said that it was added to the page

  1. <style type="text/css">
  2.         /*-- 消除grid屏闪问题 --//*/
  3.         .datagrid-mask {
  4.             opacity: 0;
  5.             filter: alpha(opacity=0);
  6.         }

  7.         .datagrid-mask-msg {
  8.             opacity: 0;
  9.             filter: alpha(opacity=0);
  10.         }
  11.     </style>
Copy code






Previous:Can Ruijie under Liunx log in to the campus network, who has the Ruijie client under Liunx?
Next:EasyUI datagrid tables dynamically bind field columns
Posted on 10/29/2015 2:54:45 PM |
Baidu is really a good thing to learn
 Landlord| Posted on 10/30/2015 10:11:40 AM |
Summer Posted on 2015-10-29 14:54
Baidu is really a good thing to learn

The forum is also a good thing!
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com