I have been using the excellent IPagedList from Martijn Boland the swap method for MVC1 for some time, now for a good effect. I just tried using it with Haacked Default Templated Views in MVC2 and found that it was causing problems.
In particular, when calling:
<%= Html.Display("SomeViewDataKeyToAnIPagedListCollection") %>
from within the general index view, causes the display of the pager object instead of the corresponding DisplayTemplate View for the PagedList collection. I assume this is due to the fact that the mapping mechanism between DisplayTemplates and the model falls.
Does anyone come across a workaround for this already?
source
share