Click here to Skip to main content
15,908,274 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Can any one pls help me in solving the problem i'm facing with jqgrid.

jQuery("#productGridView").jqGrid({
            datatype: getProducts,
            colNames: ['ProductID', 'Name', 'ProductNumber', 'Color', 'Size', 'Style'],
            colModel: [{ name: 'ProductID', index: 'ProductID', width: 200, align: 'left' },
                        { name: 'Name', index: 'Name', width: 200, align: 'left' },
                        { name: 'ProductNumber', index: 'ProductNumber', width: 200, align: 'left' },
                        { name: 'Color', index: 'Color', width: 200, align: 'left' },
                        { name: 'Size', index: 'Size', width: 200, align: 'left' },
                        { name: 'Style', index: 'Style', width: 200, align: 'left' }
                       ],
            sortname: 'ProductID',
            sortorder: "desc",
            height:'auto',
            viewrecords: true
        });


This is the code i'm using for jqgrid.

I'm passing 50 records to this grid. But only 29 records are being displayed.

Can anybody pls help me out.

Thanks in advance
Posted
Updated 3-Aug-17 23:51pm

Have you tried setting the rowNum property to 50? I'm not sure what the default value is, I would guess it's 29.
 
Share this answer
 
try to set height so that if rows are not set then it will displays all the records. hopefully its helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900