Forum


12:52

Moderators
30/10/2007

Hello
See docs. Ther is a option shrinkToFit
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
14:59

12/09/2011

Hi Tony,
I have same issue. Had tried shrinktofit=false.. but it didnt help me.
Code is
$('#' + id).jqGrid({
url: getDataUrl(),
sortable: true,
datatype: "json",
height: '100%',
colModel :[
{name:'Name', index:'Name',search:false,sortable:false, width:75},
{name:'Profile', index:'Profile',search:false,sortable:false, width:70},
{name:'company_name', index:'company_name', width:200},
{name:'first_name', index:'first_name', width:200},
{name:'u.last_name', index:'u.last_name', width:200},
{name:'entry_date', index:'entry_date', width:150},
{name:'email', index:'email', width:200},
{name:'phone_work', index:'phone_work', width:200},
{name:'phone_home', index:'phone_home', width:200},
{name:'phone_mobile', index:'phone_mobile', width:200},
{name:'fax', index:'fax', width:200},
{name:'source_name', index:'source_name', width:150},
{name:'allocated_to', index:'allocated_to', width:150}
],
multiselect: true,
rowNum: $.fn.ltjqgrid.defaults.FundListDefaultNumberOfResultsPerPage,
rowList: getRowList(),
pager: '#' + pagerId,
sortname: $.fn.ltjqgrid.defaults.DefaultSorting,
sortorder: $.fn.ltjqgrid.defaults.DefaultSortingDirection,
recordtext: getLabel("GridRecordText","View {0} - {1} of {2}"),
emptyrecords: getLabel("GridEmptyRecords", "No records to view"),
loadtext: getLabel("LoadingPageLabel", "Loading..."),
pgtext: getLabel("GridPageOf", "Page {0} of {1}"),
shrinkToFit: false,
altRows: true,
autowidth: true,
viewrecords: true,
page: currentPage,
viewsortcols:[true,"vertical",true],
loadComplete: function () {
$('#' + id + '_cb').addClass("gridCheckbox");
$('#' + id + ' tr td:first-child').addClass("gridCheckbox");
}
Can u pls help!
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66