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

How to set Last Record focus and selected in the RadDataPager

3 Answers 90 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Rajsekhar
Top achievements
Rank 1
Rajsekhar asked on 12 Sep 2012, 04:36 AM
Hi,

i am facing one issue using RadDataPager Control . i want set Last record getting with focus and selected. i am using RadListView template to fill the information. For paging am using RadDataPager Control. My Query is By Defect Last record of the paging index must be focus and selected record can be displayed.
for me this is high priority
Thanks for advance.

Please see the below picture .




Regards
Raj

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Sep 2012, 05:46 AM
Hi Raj,

Try the following JavaScript to achieve your scenario.

JS:
<script type="text/javascript">
function pageLoad(){
   var DataPager = $find('<%=RadDataPager1.ClientID%>');
   DataPager.set_currentPageIndex(DataPager.get_pageCount() - 1);
 }
</script>

Hope this helps.

Regards,
Princy.
0
Rajsekhar
Top achievements
Rank 1
answered on 28 Sep 2012, 07:13 AM
Hello Princy,

Thanks for providing the solution.
Where i will  call this javascript function in RadDataPager Control ?

Thanks
Raj
0
Princy
Top achievements
Rank 2
answered on 28 Sep 2012, 07:54 AM
Hi,

You can access the RadDataPager in pageLoad function which fires when the page loads. You can place this javascript under the script tag. Hope this helps.

Thanks,
Princy.

Tags
DataPager
Asked by
Rajsekhar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Rajsekhar
Top achievements
Rank 1
Share this question
or