Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi experts!
I used jqgrid plugin to create table. while i scroll horizontal bar to left or right i want to keep all contents of first column. I searched google but still haven't found ways yet. Expert who have experienced please help me!
thank you so much!

code:

<table id="grid-viewresult"><table>


JavaScript
 $("#grid-viewresult").jqGrid({
       data: data,
       datatype: "local",
       height: 220,
       width: 462,
       colNames: colNames,
       colModel: colModel,

       rowNum: 99999999,
       toolbarfilter: false,
       viewrecords: false,
       multiselect: false,
       autowidth: false,
       forceFit: true,
       shrinkToFit: false
});
Posted
Updated 15-Jul-15 1:29am
v3

1 solution

From the jqGrid Wiki:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:frozencolumns[^]

Twomethods, either by declaring in the column model or dynamically using the setFrozenColumns method.
 
Share this answer
 
Comments
alex giulio 18-Jul-15 7:58am    
Thank you so much! you are great, wonderful, good man....

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