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
select a row on page x
05/10/2009
02:16
Avatar
jonhb
Member
Members
Forum Posts: 12
Member Since:
27/05/2009
sp_UserOfflineSmall Offline

hi

I want to select a row which I have only the unique Id for. How do I easily goto the page where this row is and select it?

It works fine when the row I want is on the first page, but not when it's on the others.

06/10/2009
06:07
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Do not understand.

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/2009
05:29
Avatar
jonhb
Member
Members
Forum Posts: 12
Member Since:
27/05/2009
sp_UserOfflineSmall Offline

i have a grid with say 200 records, 20 records pr. page => 10 pages.

How do i open this grid (from another HTML page, I send the ID as a parameter) with the correct page active and the wanted record selected.

All I have is the unique id for the row.

07/10/2009
21:45
Avatar
MamaliFrenchi
Member
Members
Forum Posts: 62
Member Since:
22/12/2008
sp_UserOfflineSmall Offline

Why don't you just filter your grid, and return the only record with your ID? in your case you don't need pagination.

08/10/2009
01:37
Avatar
jonhb
Member
Members
Forum Posts: 12
Member Since:
27/05/2009
sp_UserOfflineSmall Offline

I want all the records in the grid at all time. This is a function to switch from grid-view to formview. The grid is used as an quick overview, if data needs to be changed double-click the row to edit in form-view (not jqgrid formview). From the form-view I want to go back to the place I was when i left the grid.

09/10/2009
03:59
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

If I understand right maybe you will need to pass parameters to the page where the grid is or use cockies for this purpose, then in gridComplete event you can check if this parameter is present and do setSelection with the rowid.

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.

12/10/2009
05:42
Avatar
jonhb
Member
Members
Forum Posts: 12
Member Since:
27/05/2009
sp_UserOfflineSmall Offline

hi,

yes i figured that out, and this works fine when the row is on the first page in the grid. When the row i want to select is on another page i get the error: 'this.0.innerHTML'  is null or not an object

So basically I need to know which page the row is on and select the page before i can select the row...

12/10/2009
11:48
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can get the page from grid parameters using getGridParam. See options for the grid

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