EasyUI Forum

General Category => Bug Report => Topic started by: lbsx7gs on February 27, 2018, 08:53:59 PM



Title: datagrid emptyMsg did not work
Post by: lbsx7gs on February 27, 2018, 08:53:59 PM
set emptyMsg at datagrid. It did not display the empty message ,when empty datagrid.


Title: Re: datagrid emptyMsg did not work
Post by: jarry on February 28, 2018, 03:02:47 AM
Please look at this example http://code.reloado.com/ahojeb3/edit#html,live. It works fine.


Title: Re: datagrid emptyMsg did not work
Post by: lbsx7gs 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



Title: Re: datagrid emptyMsg did not work
Post by: jarry 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>