Put the pager somewhere else on the page using the MVC wrappers

2 posts, 1 answers
  1. fretje
    fretje avatar
    10 posts
    Member since:
    Dec 2012

    Posted 12 Apr 2013 Link to this post

    Is there a way to put the pager control somewhere else on the page, using the MVC wrappers? It seems like the pager is always rendered after the listview. I would like to have it in a separate pane (seperated by a kendo splitter) on my page? Is this possible with the MVC wrappers, or will I have to resort to a native javascript implementation?
  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 12 Apr 2013 Link to this post

    Hi Frederiek,


    The location of the pager cannot be changed through the MVC wrappers. As a workaround you could bind to the dataBound event of the ListView, get the pager wrapper and move it elsewhere.
    E.g.
    function dataBound(e) {
        $("#listView").next(".k-pager-wrap").insertBefore($(".k-content"));
    }

    I hope this approach will work in your scenario.

     

    Kind regards,
    Dimiter Madjarov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top