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

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

1 Answer 79 Views
ListView
This is a migrated thread and some comments may be shown as answers.
fretje
Top achievements
Rank 1
fretje asked on 12 Apr 2013, 09:43 AM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Madjarov
Telerik team
answered on 12 Apr 2013, 02:24 PM
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!
Tags
ListView
Asked by
fretje
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or