Forum
17:02
16/04/2009
I need to set the Options for Jqgrid like toppager, forceFit for which the "Can be changed?" value is set to "No" hence i tired it to set by adding it this way
jQuery(document).ready(function() {
jQuery("#list").setGridParam({ forceFit: true, toppager: true }).trigger("reloadGrid");
jQuery("#list").jqGrid({
url: '<%= Url.Action("GridData") %>',
datatype: 'json',
mtype: 'GET',
colNames:['Time', 'Description', 'Category', 'Type', 'Originator', 'Vessel'],
colModel: [
{ name: 'Time', index: 'Time', width: 200, align: 'left' },
{ name: 'Description', index: 'Description', width: 600, align: 'left' },
{ name: 'Category', index: 'Category', width: 100, align: 'left' },
{ name: 'Type', index: 'Type', width: 100, align: 'left' },
{ name: 'Originator', index: 'Originator', width: 100, align: 'left' },
{ name: 'Vessel', index: 'Vessel', align: 'left'}],
pager: jQuery('#pager'),
rowNum: 20,
rowList: [10, 20, 50],
sortname: 'Time',
sortorder: "desc",
viewrecords: true,
hoverrows: false,
gridview: true,
emptyrecords: 'No data for the applied filter',
height: 460,
caption: 'Logbook Grid',
//forceFit: true,
width: 1200
}); });
But it didnt work Can u pls let me know what exactly i am doing wrong or the right way for this ?
11:46
Moderators
30/10/2007
Hello,
Sorry I do not understand. What does not work?
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.
07:47
16/04/2009
forceFit and toppager which is called in SetGridParam did not work.
Because forceFit is not working, hence still there is a horizontal scroll bar visible.
And Also even after setting the toppager to true as shown in the code above the pager didn't move at the top.
Hope i have cleared my question now..
Thanks in Advance....
12:14
Moderators
30/10/2007
Hello,
I do not see the toppager to be set into the code.
Which version do you use? the toppager is available as of version 3.6.3
forceFit works well - it can be seen into the demo
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.
Most Users Ever Online: 715
Currently Online:
35 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