Forum
18:48
29/06/2010
I have a grid that has a datatype as local. The data is not known at the time of grid creation. I set the grid data later and trigger a reload. However, the recordtext does not appear (to the let the user know the number of records). How can I get the recordtext to appear under the described scenario? The details are below. Thanks in advance for your help.
The following grid is first created:
datatype: "local",
height: resultsTableHeight,
colNames:["Account"],
colModel:[ { name:"accountId", width:75}],
multiselect: false,
scroll:true,
loadonce: true,
gridview: true,
viewRecords: true,
pager: "#pager",
recordtext : "{2} Accounts",
sortable: true
});
Later, when the data is recieved, the following code is executed:
$resultsTable.jqGrid("setGridParam",{data: results});
$resultsTable.trigger("reloadGrid");
An example of the data (i.e. the value of results variable show in the above code) that might be recieved is:
Most Users Ever Online: 715
Currently Online:
38 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