How to set Last Record focus and selected in the RadDataPager

4 posts, 0 answers
  1. Rajsekhar
    Rajsekhar avatar
    3 posts
    Member since:
    Sep 2012

    Posted 11 Sep 2012 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Sep 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rajsekhar
    Rajsekhar avatar
    3 posts
    Member since:
    Sep 2012

    Posted 28 Sep 2012 Link to this post

    Hello Princy,

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

    Thanks
    Raj
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Sep 2012 Link to this post

    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.

Back to Top