How to display information in jqGrid that there are not any data?

前端 未结 8 1560
不知归路
不知归路 2020-12-10 04:33

When jqGrid is empty I want to display single empty row inside the grid with information message that there are not any data. How is this possible? Thanks

8条回答
  •  情歌与酒
    2020-12-10 05:21

    I found the best way to do this and allow the grid to handle it is to return the default parameters with no rows. For example, I'm using JSON data, so this would be the return JSON.

    {"d":"{"page":"1","total":"0","records":"0","rows":[]}"}
    

提交回复
热议问题