EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 19, 2024, 10:25:26 PM
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
>
Bug Report
>
datagrid don't refresh data when data rows of fetch from ajax is 0 row
Pages: [
1
]
« previous
next »
Print
Author
Topic: datagrid don't refresh data when data rows of fetch from ajax is 0 row (Read 11898 times)
zzdfc
Jr. Member
Posts: 58
datagrid don't refresh data when data rows of fetch from ajax is 0 row
«
on:
February 03, 2014, 07:43:06 PM »
datagrid don't refresh data when data rows of fetch from ajax is 0 row,how to solve it,please?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: datagrid don't refresh data when data rows of fetch from ajax is 0 row
«
Reply #1 on:
February 04, 2014, 09:07:18 PM »
You may need to provide your testing code snippets or describe your issue in more detail.
Logged
zzdfc
Jr. Member
Posts: 58
Re: datagrid don't refresh data when data rows of fetch from ajax is 0 row
«
Reply #2 on:
February 05, 2014, 06:46:06 AM »
when I deleted a row data that is last row from server,I execute state:
$("#role").datagrid("reload");
datagrid #role have still displayed the row data that infactly was deleted.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: datagrid don't refresh data when data rows of fetch from ajax is 0 row
«
Reply #3 on:
February 05, 2014, 06:56:06 AM »
Please use firebug to see if the data returned from server is correct after deleted your record. The correct json data looks like this:
Code:
{"total":0,"rows":[]}
Logged
zzdfc
Jr. Member
Posts: 58
Re: datagrid don't refresh data when data rows of fetch from ajax is 0 row
«
Reply #4 on:
February 11, 2014, 12:18:14 AM »
It's true.
Thanks.
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...