EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 03, 2024, 12:47:12 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
how can i show my custom msg in the datagrid body,when the remote data.tatal = 0
Pages: [
1
]
« previous
next »
Print
Author
Topic: how can i show my custom msg in the datagrid body,when the remote data.tatal = 0 (Read 7878 times)
next
Newbie
Posts: 1
how can i show my custom msg in the datagrid body,when the remote data.tatal = 0
«
on:
April 24, 2014, 03:26:29 AM »
how can i show my custom emptyText in the datagrid body,when the remote data.tatal = 0. I try it in the onLoadSuccess callback then appendRow and mergeCells but it seems no good, the gridheader columns will be merge too. the core like below:
onLoadSuccess:function (response) {
if (!response.total) {
$(selector).datagrid('appendRow',{
'fieldName':'emptyText'
}).datagrid('mergeCells',{
index: 0,
field: $(selector).datagrid('getColumnFields')[0],
colspan: $(selector).datagrid('getColumnFields').length
})
}
}
ps: i hope it can be setting options like {emptyText:'no data!'}
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: how can i show my custom msg in the datagrid body,when the remote data.tatal = 0
«
Reply #1 on:
April 24, 2014, 06:20:58 AM »
Please refer to this topic
http://www.jeasyui.com/forum/index.php?topic=1881.0
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...