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

Pager Position not working

5 Answers 187 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Haukur Sigurðsson
Top achievements
Rank 1
Haukur Sigurðsson asked on 26 Mar 2010, 11:44 AM
hi all,

After I upgraded to Q1 2010 the pager position is not working. 

It actually works on first load but after expanding (ajax postback), one row in the grid, the pager appears both at the bottom and top of the grid, but is set to show just at the bottom.  

It seems to be working correctly if AlwaysVisible is set to false but as I have custom pager that shows the time and more that is not a option to set too false.
This setting worked before the update:
<PagerStyle Mode="NumericPages" BackColor="White" Position="Bottom" AlwaysVisible="true" />

Any ideas of what is wrong or have a workaround?

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 26 Mar 2010, 02:19 PM
Hello Haukur,

Please find attached a simple working application which is working as expected. Give it a try and let me know what differs in your scenario.

Looking forward for your reply.

All the best,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Foenix
Top achievements
Rank 1
answered on 26 Mar 2010, 08:02 PM
Hi,

We're experiencing the same problem: after item expanding we can see two pagers on the page. Most strange is that it happens on some pages, but not on all (with the same PagerStyle settings). I'll try to reproduce this behaviour with some test project, but it can take some time.
Nevertheless, I found that attached example doesn't work absolutely properly:
1. When I open the page, everything is Ok (see attached picture step1.gif)
2. When I expand the first item of the first level, everything is still Ok (step2.gif)
3. When I expand the second item of the first level or the first item of the second level, the pager for the first item appears (step3.gif)
4. Following expands add a pager for previously expanded items (step4.gif)

I don't think that such behaviour was intended, so, could you, please, make additional test to find what happens?
0
Pavlina
Telerik team
answered on 29 Mar 2010, 10:01 AM
Hello Foenix,

Thank you for the provided information.

In order to avoid the unexpected behavior you should set PagerStyle-AlwaysVisible property of the MasterTableView to true. However, I am sending you a modified project which handles the desired functionality. Please examine it and let me know if it works as expected.

All the best,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Foenix
Top achievements
Rank 1
answered on 29 Mar 2010, 09:09 PM
Thank you,

Yes, your project works fine, but! A very small modification of PageSize (like PageSize="100") changes everything. Could you try it?

P.S. 100 is not a magic number. Problem with double pager comes when all items are on the same page, i.e. PageSize >= ItemsCount. I was able to reproduce such behaviour on all pages where Expand/Collapse exists.

--------------------------------------------------------------------------------------------------
Another problem found. If I set <PagerStyle Mode="NextPrevNumericAndAdvanced" /> it doesn't work. The property Mode of the PagerStyle does nothing at all (as well as the property PagerStyle-Mode of the RadGrid), doesn't matter what value I assign. But the property PagerStyle-Mode of the MasterTableView works perfect.
--------------------------------------------------------------------------------------------------
Best regards,
me
0
Pavlina
Telerik team
answered on 30 Mar 2010, 03:14 PM
Hi Foenix,

You can download the latest internal build from your account - in the Downloads section -> Latest Internal Builds. This build contains the fix you need.

Best wishes,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Haukur Sigurðsson
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Foenix
Top achievements
Rank 1
Share this question
or