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

[Solved] Dropdown in Pager Header & Footer

0 Answers 99 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 10 Aug 2010, 08:49 PM
I added a dropdown in the pager to allow the user to change the pageSize as shown in this thread.  I have the Pageable Position set to GridPagerPosition.Both and the dropdown shows up in both.  To set the dropdown selected item to the current pageSize, I added in the OnDocumentReady script:

var value = "<%= (int)ViewData["pageSize"] %>";
$('#pageSize').val(value);

This works, but it only changes the selected value in the header pager.  The footer pager always has the first item in the list as the selected item.  How do I access the pageSize dropdown in the footer pager to set the selected value of that dropdown also?

Thanks.
Tags
Grid
Asked by
Cyndie
Top achievements
Rank 1
Share this question
or