EasyUI Forum
May 16, 2024, 12:33:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Showing information if data is empty on datagrid [UNSOLVED]  (Read 9193 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« on: January 05, 2016, 12:33:51 AM »

A suggestion...

Based on : http://www.jeasyui.com/forum/index.php?topic=5458.0

i think it will be great if datagrid support masking too,
and maybe datagrid must-have a builtin feature to show information if the datagrid was empty like the image below


Thank you in advance
Smiley
« Last Edit: February 25, 2016, 12:06:37 AM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
arma
Full Member
***
Posts: 110


View Profile
« Reply #1 on: January 09, 2016, 06:38:18 AM »

Grid has already its masking feature :

Code:
grid.datagrid('options').loadMsg = 'Please wait while loading..';
grid.datagrid('loading');

When finish loading, hide it by calling
Code:
grid.datagrid('loaded');
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: January 10, 2016, 09:04:50 PM »

i think the loadMsg is purposed for pure loading message with lack of builtin options not for masking the datagrid..
its just different..

fiddle: http://jsfiddle.net/rz2dn7oo/
1. Click Show Mask
2. Click Remove Mask
3. Click Reload Datagrid

when the third button pressed it will show "No Data" message instead of "Please wait while loading.."
so i need to reset it manually by the fourth button and that is not good

regards
sigit
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!