Forum

July 10th, 2011
You must be logged in to post Login Register

Search Forums:


 






setSelection is not scrolling to the selected row

No Tags
UserPost

10:41
07/03/2010


gal_ga

Member

posts 10

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.


19:27
08/03/2010


tony

Sofia, Bulgaria

Moderator

posts 7009

Hello,

In order to work this try to set another options


scrollrows : true


Regards

Tony

20:09
08/03/2010


gal_ga

Member

posts 10

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

still not working.


20:18
08/03/2010


tony

Sofia, Bulgaria

Moderator

posts 7009

Hello,

Sorry – missed the beginning. Will check it.

Thanks


20:30
08/03/2010


gal_ga

Member

posts 10

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.

20:51
09/03/2010


tony

Sofia, Bulgaria

Moderator

posts 7009

Hello,

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


Regards

Tony

21:05
09/03/2010


gal_ga

Member

posts 10

Hi Tony,


Great to know.

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


Cheers,

Gal

15:00
11/03/2010


tony

Sofia, Bulgaria

Moderator

posts 7009

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

17:22
11/03/2010


gal_ga

Member

posts 10

Post edited 15:22 – 11/03/2010 by gal_ga


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

19:39
13/03/2010


tony

Sofia, Bulgaria

Moderator

posts 7009

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

15:16
16/03/2010


SimonO

New Member

posts 1

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

11:09
18/03/2010


tony

Sofia, Bulgaria

Moderator

posts 7009

Hello,

The fix is here:

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


Best Regards

Tony

11:39
18/03/2010


gal_ga

Member

posts 10

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


11:01
22/03/2010


tony

Sofia, Bulgaria

Moderator

posts 7009

Hello,

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


Best Regards

Tony

11:14
22/03/2010


gal_ga

Member

posts 10

Thanks for the update.


Cheers,

Gal

17:07
16/07/2010


attos

New Member

posts 1

Thanks Tony,

Just saved me!

A.

11:18
03/07/2012


Moshe

New Member

posts 1

Helllo


the problem still exist only in Explorer 9.


any suggestions how to resolve this problem?


Thanks,

Moshe

13:49
10/07/2012


tony

Sofia, Bulgaria

Moderator

posts 7009

Hello,

More information on this will be grestley appreciated.

A test case will be great.

Which version of jquery is used?


Regards

09:31
14/12/2012


prince

Member

posts 6

Post edited 10:27 – 14/12/2012 by prince


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

No Tags

About the jQuery Grid Plugin – jqGrid forum

Most Users Ever Online:

157


Currently Online:

60 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 9591

Posts: 28784

Membership:

There are 10167 Members

There have been 448 Guests

There is 1 Admin

There are 2 Moderators

Top Posters:

OlegK – 1157

markw65 – 179

kobruleht – 144

phicarre – 126

YamilBracho – 124

Renso – 118

Administrators: admin (56 Posts)

Moderators: tony (7009 Posts), Rumen[Trirand] (81 Posts)




Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information