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
setSelection is not scrolling to the selected row
07/03/2010
10:41
Avatar
gal_ga
Member
Members
Forum Posts: 10
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

Hi,

I've defined as documented a table with scrollrows : true.

When using setSelection - the target row is getting selected  as expected, but the scrollbar are with no change.

for example if I'm viewing row no. #1 and using setSelection on row #90 - row #90 will be selected but the view is still on the area of row #1.

I've also tried it on the demo page: http://www.trirand.com/blog/jq.....qgrid.html

New in version 3.4 --> Scroll with dynamic row select

I've selected the first row #13 - and executed using Firebug:

jQuery("#navgrid2").jqGrid('setSelection',4);

The last row (row #4) was selected, but I'm not scrolled to row #4.

08/03/2010
19:27
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

In order to work this try to set another options

scrollrows : true

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.

08/03/2010
20:09
Avatar
gal_ga
Member
Members
Forum Posts: 10
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

As I've mention in my post (1st row). it is set.

still not working.

08/03/2010
20:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Sorry - missed the beginning. Will check it.

Thanks

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.

08/03/2010
20:30
Avatar
gal_ga
Member
Members
Forum Posts: 10
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

Thank you.

I've also checked it on the demo page, using firebug.

same thing on the demo page, on a table which has this settings is not working.

09/03/2010
20:51
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Have do some work on this. I need more tests.

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.

09/03/2010
21:05
Avatar
gal_ga
Member
Members
Forum Posts: 10
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

Hi Tony,

Great to know.

If I can assisnt in some way - I'll be happy to.

Cheers,

Gal

11/03/2010
15:00
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I have initial fix for this in GitHub. The fix should be refined since it uses fixed row height.

Also I will work on this late.

You can test it.

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.

11/03/2010
17:22
Avatar
gal_ga
Member
Members
Forum Posts: 10
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

Hi Tony,

I've tested it. looks much better still has some problems.

I've posted a demo page on: http://gurarie.org/jqGrid.html

When there is not selected line – scroll to lower line doesn't work. scroll to upper line will work.

If you are viewing the first rows and want to select row #9 – it will be selected, but the scroll will not change.

The other way it is working – select none. scroll to the buttom of the table and scroll to row #1 – it will work as expected and will select row #1 and will scroll to it.

If there is one selection it will also work ok.

All can be seeing in my demo page.

Thanks again for your time and effort.

Please let me know if I can assist in some way.

Cheers,

Gal

13/03/2010
19:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello Gal,

Thank you. I see the problem and if the problem is localized, then the solution will be easy.

I will play this weekend with this.

Thanks again

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.

16/03/2010
15:16
Avatar
SimonO
New Member
Members
Forum Posts: 1
Member Since:
16/03/2010
sp_UserOfflineSmall Offline

Hi Tony,

I am currently working on a feature that requires the setSelection to scroll to a row that isnt visible - but I am experiencing the same issue as gal_ga. Any resolution to this problem as yet?

Cheers,

Si

18/03/2010
11:09
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The fix is here:

http://github.com/tonytomov/jq.....55a2a5868d

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

18/03/2010
11:39
Avatar
gal_ga
Member
Members
Forum Posts: 10
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

Hi Tony,

Thanks for the fix. I see that it is working - I've also updated my demo page.

It will also be great if you can include the fix in an official release (3.6.5 ?).

Thanks again for your time and effort!!

Cheers,

Gal

22/03/2010
11:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks for testing. Every change and fix will be in the next release.

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

22/03/2010
11:14
Avatar
gal_ga
Member
Members
Forum Posts: 10
Member Since:
07/03/2010
sp_UserOfflineSmall Offline

Thanks for the update.

Cheers,

Gal

16/07/2010
17:07
Avatar
attos
New Member
Members
Forum Posts: 1
Member Since:
08/02/2010
sp_UserOfflineSmall Offline

Thanks Tony,

Just saved me!

A.

03/07/2012
11:18
Avatar
Moshe
New Member
Members
Forum Posts: 1
Member Since:
03/07/2012
sp_UserOfflineSmall Offline

Helllo

the problem still exist only in Explorer 9.

any suggestions how to resolve this problem?

Thanks,

Moshe

10/07/2012
13:49
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

More information on this will be grestley appreciated.

A test case will be great.

Which version of jquery is used?

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.

14/12/2012
09:31
Avatar
prince
Member
Members
Forum Posts: 6
Member Since:
19/10/2012
sp_UserOfflineSmall Offline

Hi Tony,

The problem still exist only in Internet Explorer 9. 

Problem : it is scrolling but not upto selected row. It stops one row before of selected row.

Take example of updated demo page of Mr. gal_ga mentioned in previous post Or jqGrid Demo page http://www.trirand.com/blog/jq.....qgrid.html  then select New in version 3.4 then Scroll with dynamic row select.

for example if I'm viewing row no. #1 and using setSelection on row #9 – row #9 will be selected but the view is still on the area of upto row #8.

Thanks & Regards,

Prince

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
76 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