Title: datagrid don't refresh data when data rows of fetch from ajax is 0 row Post by: zzdfc 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?
Title: Re: datagrid don't refresh data when data rows of fetch from ajax is 0 row Post by: stworthy on February 04, 2014, 09:07:18 PM You may need to provide your testing code snippets or describe your issue in more detail.
Title: Re: datagrid don't refresh data when data rows of fetch from ajax is 0 row Post by: zzdfc 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. Title: Re: datagrid don't refresh data when data rows of fetch from ajax is 0 row Post by: stworthy 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":[]} Title: Re: datagrid don't refresh data when data rows of fetch from ajax is 0 row Post by: zzdfc on February 11, 2014, 12:18:14 AM It's true. ;D
Thanks. |