This is a migrated thread and some comments may be shown as answers.

[Solved] radgrid selection and paging

3 Answers 202 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ayesha
Top achievements
Rank 1
Ayesha asked on 21 Jan 2010, 08:48 PM

Hi,

I've a radgrid with paging enabled. I've the PagerStyle-Mode="NextPrevAndNumeric" PageSize="20" set in my ascx.
I select 50 from the page size combobox and all the items come up. But when I scroll down to the bottom of the page and I select one item from the bottom of the page, suddenly my page moves to the top of the screen and then I need to scroll all the way down to find my selected item.

Some event happens causing the page to jump back to the top of the screen.

Pls help with code.

If I need to do some javascript, pls show with code.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Jan 2010, 04:32 AM
Hi,

The following documentation shows how to scroll to selected item when scrolling is enabled. I hope the documentation will help you in achieving the functionality.
Scrolling to the selected item

-Shinu.
0
Ayesha
Top achievements
Rank 1
answered on 25 Jan 2010, 05:27 AM
Shinu,
I think I didn't communicate my problem well. My situation is :User has 50 items per page, when selecting (highlighting) a item(selecting a row from the grid) , the page automatically  jumps back to the top of the screen. User then has to scroll back down to  view the selected item.

I would espect this: when I page and when my page size is 50, I scroll down and select 48th item(row) in my grid. sudden some event happens causing the page to move and my whole page moves to the top of the screen. Now to view my selected 48th item, I've to scroll downa nd view it,. this happens only whn I've a large page sizze like 20 or 50. How do I avoid this radgrid's weird behaviour.

Pls explain with code.
0
Pavlina
Telerik team
answered on 25 Jan 2010, 08:28 AM
Hi Ayesha,

To avoid your page to jump back to the top after selection, try to set SaveScrollPosition property to true and see if it works as expected.
ASPX:
<ClientSettings>  
       <Scrolling AllowScroll="True" SaveScrollPosition="True"></Scrolling>  
    </ClientSettings>

I hope this helps.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Ayesha
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ayesha
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or