Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
recordtext not displaying when using local datatype
20/04/2011
18:48
Avatar
logicg8
Member
Members
Forum Posts: 10
Member Since:
29/06/2010
sp_UserOfflineSmall Offline

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:

$component.find("#results").jqGrid({
        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:

[{account:"abc"}, {account:"aba"}, {account:"xyz"}]
20/04/2011
22:39
Avatar
logicg8
Member
Members
Forum Posts: 10
Member Since:
29/06/2010
sp_UserOfflineSmall Offline

I found the issue. The grid option was specified as viewRecords. It should have been viewrecords.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information