EasyUI Forum
June 23, 2018, 12:50:40 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid emptyMsg did not work  (Read 662 times)
lbsx7gs
Newbie
*
Posts: 3


View Profile Email
« on: February 27, 2018, 08:53:59 PM »

set emptyMsg at datagrid. It did not display the empty message ,when empty datagrid.
Logged
jarry
Administrator
Hero Member
*****
Posts: 1384


View Profile Email
« Reply #1 on: February 28, 2018, 03:02:47 AM »

Please look at this example http://code.reloado.com/ahojeb3/edit#html,live. It works fine.
Logged
lbsx7gs
Newbie
*
Posts: 3


View Profile Email
« Reply #2 on: February 28, 2018, 03:43:26 AM »

Thanks,this example works fine.

But when I remove the height style of the table,it did not work.
Because some times I do not known the height of the table,I hope the height of the table can auto scale.

What can I do about it?

<table class="easyui-datagrid" style="width:600px;" data-options="
  title: 'DataGrid',
  emptyMsg: 'no records'   
  ">
</table>

http://code.reloado.com/ahojeb3/3/edit#html,live

Logged
jarry
Administrator
Hero Member
*****
Posts: 1384


View Profile Email
« Reply #3 on: February 28, 2018, 08:09:01 AM »

Set the 'min-height' style for the datagrid and it works fine.
Code:
<table class="easyui-datagrid" style="width:600px;min-height:100px" data-options="
  title: 'DataGrid',
  emptyMsg: 'no records'   
  ">
</table>
Logged
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!