Forum
It would be useful to be able to display a custom message to the user in the center of the grid, in an obvious manner.
For example, if no results are returned, it would be helpful to display something like "No Records Found." in the center of the screen. This way the user knows that the the grid is finished processing, and that the empty table is what is supposed to be displayed.
It's already possible to do things like adjust the caption in the onLoad event-handler, however, this doesn't always stand-out and could easily be over-looked by the user.
While it's possible to abuse the progress indicator to do this, e.g.:
loadComplete: function () {
if (this.p.records === 0) {
setTimeout(function () {
$("#load_search-results-datagrid").show().text("No Matches Found.");
}, 500);
}
}
This isn't a very elegant solution to the problem.
Any possibility to include a method to display some text to the user in a manner similar to the progress indicator?
Thanks!
Keith
18:37
Moderators
30/10/2007
Hello,
If you use a pager - there is a such function - if no records we put usually at botom right of the grid - No records to view.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
71 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66