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
How to set the Options
22/04/2010
17:02
Avatar
paresh
Member
Members
Forum Posts: 5
Member Since:
16/04/2009
sp_UserOfflineSmall Offline

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 ?

23/04/2010
11:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

26/04/2010
07:47
Avatar
paresh
Member
Members
Forum Posts: 5
Member Since:
16/04/2009
sp_UserOfflineSmall Offline

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.... 

29/04/2010
12:14
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information