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

[Solved] Pager Position Both Issue

2 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Cyndie
Top achievements
Rank 1
Cyndie asked on 28 Jul 2010, 07:51 PM
When I set the .Pageable option for GridPagerPosition.Both, the top pager always displays "Displaying items 0 - 0 or 0", but the bottom pager correctly shows the value.  Do I have something in the wrong order or am I missing something to get numbers to show up in both pagers?

.Pageable(pager => pager.PageSize(100).Position(GridPagerPosition.Both))


Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Germanov
Telerik team
answered on 30 Jul 2010, 11:34 AM
Hello Cyndie,

This indeed is a bug, which we have already fixed. The fix will be included in the next official release of Telerik Components for ASP.NET MVC scheduled for the end of August.

Until then, you can fix it for yourself if you patch the following line from the updatePager method in telerik.grid.js file:
[OLD]:
    // status
    this.$footer.find('.t-status-text')
        .text($t.formatString(localization.displayingItems,
            this.firstItemInPage(),
            this.lastItemInPage(),
            this.total));


[NEW]:
    // status
    this.$pager.parent()
               .find('.t-status-text')
               .text($t.formatString(localization.displayingItems,
                    this.firstItemInPage(),
                    this.lastItemInPage(),
                    this.total));

Kind regards,
Hristo Germanov
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
Cyndie
Top achievements
Rank 1
answered on 02 Aug 2010, 03:40 PM
Thank You!!
Tags
Grid
Asked by
Cyndie
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Cyndie
Top achievements
Rank 1
Share this question
or