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
jqGrid using a navGrid with position=right doesn't seem to work
24/09/2013
17:18
Avatar
Sabran
Member
Members
Forum Posts: 5
Member Since:
10/09/2013
sp_UserOfflineSmall Offline

I'm using navGrid with position=right for the buttons, and they don't appear to be working. I've got a jsfiddle here:

http://jsfiddle.net/yNw3C/3972/

If you take a look at line 54, you'll see that I'm setting the "position" of the navgrid to right. The buttons are completely disappearing. If I set it to "left" or "center", they seem to work as expected.

Am I doing something wrong? Or is this a legitimate bug in jqGrid?

26/09/2013
18:08
Avatar
Sabran
Member
Members
Forum Posts: 5
Member Since:
10/09/2013
sp_UserOfflineSmall Offline

I've got this on stackoverflow as well.

Neither this thread or the stackoverflow thread is getting any traction, though. Am I doing something wrong with this post?

06/10/2013
12:43
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

In your code in grid options just add

recordpos :"left",

The record pos is default at right and it make some confusions.

Enjoy

Kind 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/10/2013
21:07
Avatar
Sabran
Member
Members
Forum Posts: 5
Member Since:
10/09/2013
sp_UserOfflineSmall Offline

Thanks, Tony.

That doesn't exactly do what I was hoping. I'd like to keep the text that shows how many items are being viewed on the right, but ALSO have the icons show up on the right. Is this possible? It doesn't matter to me if the icons or the text come first.

Also, I noticed that even after putting recordpos: "left", the icons didn't completely right-align. They still look somewhat center aligned. Here's that jsfiddle: http://jsfiddle.net/yNw3C/4080/

Thanks!

08/10/2013
12:13
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

This is by design. The pager is divided at 3 parts and the righ is aligned lef.

The table which holds the boutton is floted left.

In order to make what you want do

$(".navtable",pager+"_right").css("float","right");

where

pager = '#grid_toppager';

as per your definition.

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.

10/10/2013
01:22
Avatar
Sabran
Member
Members
Forum Posts: 5
Member Since:
10/09/2013
sp_UserOfflineSmall Offline

Thanks, Tony.

This is close. Is it possible to have both the recordpos:right and also the navGrid position:right?

14/10/2013
16:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I never tested this. Will look at it, but you can experiment too.

Thanks.

Kind Regards

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:
39 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