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
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
Place your message inside a div with style: hidden. Place this within your pager div.
In loadComplete event do something like:
I know this question is a little bit old, but for me this worked fine:
Basically what I do is to load the data from the server, check if I get some records and if not just empty all the rows in the table and adding a single one width only a row with my custom text. With some CSS, the result is quite neat: