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_TopicIcon
Issue with RowNum parameter
22/06/2012
08:41
Avatar
Pradeep Reddy Billa
Warangal
New Member
Members
Forum Posts: 2
Member Since:
14/06/2012
sp_UserOfflineSmall Offline

Hi ,

I am using jqGrid in a web application using which I am trying to show hierarchical data. I am loading the grid data by making an Ajax call which returns the data as Json string.

datatype:

"local",

loadui:

"block",

loadtext:

"Loading….",

loadonce:

true,

emptyrecords:

"No records.",

colNames: [

'Id', 'Name', 'LEVEL'],

colModel: [

{ name:

'Id', index: 'Id' },

{ name:

'Name', index: 'Name' },

{ name:

'LEVL', index: 'LEVEL' }

],

height: '100%',

width: wd,

rowNum: 20,

rowList: [5,10,20, 50, 100],

recordtext:

"View {0} – {1} of {2}",

pgtext:

"Page {0} of {1}",

pager:

'#' + pagerId,

multiselect:

false,

subGrid:

true,

subGridRowExpanded:

function (subgrid_id, row_id) {

CreateSubGrid(subgrid_id, subMgmtAcctId);

}

rowNum: 20,

rowList: [5,10,20, 50, 100],

recordtext:

pgtext:

pager:

multiselect:

subGrid:

I am adding the rows grid as :

 



for (var i = 0; i <= mydata.length; i++)

$(


"#" + gridName).jqGrid('addRowData', i + 1, mydata[i]);

Now the problem is if the Number of rows is greater than the RowNum value which I set , jqGrid should automatically give the page navigator in the bottom showing only first 20 records. But instead , it's showing all the records, but again when I change the page size from the rowList dropdown, grid is getting refreshed with correct number of records and pagination.

Can somebody help me in setting RowNum at start up and make jqGrid show those many number of records only ( per page ) ? 

Thanks and Regards,

Pradeep Reddy Billa

  

  

 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
65 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