Thank you very much for the nice words. It's good to know that the module is usable and convenient for your needs. However, it seems that you would need to extend the public control functionality in a way.
Unfortunately, you would not be able to achieve the "Displaying 1 - 9 of 44 results
" functionality. At least not easily. In order to get the whole items shown in the list you should use the LibraryManager
object and thus make one additional request to the database. However you could achieve easily the "1 - 9
" functionality, by using the pager's data inside the DownloadList
template. This would be something similar to:
|<%= (pager1.SelectedPage - 1) * 30 + 1 %> - <%= (pager1.SelectedPage) * 30 %>
where 30 is the number of items shown per page. We would do our best to overcome this omission of ours for the next release.
To achieve the sorting expression and different list views, I would suggest to create a user control which wraps the DownloadList
list control, and LinkButtons
for the different views. You could preserve the selected mode and sorting expression in the query string as achieving this functionality with postbacks would be quite a challenge.
More specifically, you could achieve the different views of the data not by creating different modes but by loading different templates for each option. You could also extend the designer functionality following the article you mention in the dev manual.
Actually, I tried to come up with a solution for your problem which I am attaching to this thread. It has only a basic functionality but hope you find it useful. Thanks for the insights and good luck with your site.
the Telerik team