I need to dynamically change what List, columns, aggrgrates are shown on a WebPart… and so we are rendering an html table by using ListViewByQuery.RenderControl(). However, it seems that this method does not render the aggregrates as you would see them if you navigated to a view inside of the SharePoint site itself. We tried SPView.RenderAsHtml() as well… also no joy… please tell me that there is a solution to this very annoying problem.
I need to dynamically change what List, columns, aggrgrates are shown on a WebPart…
Share
We ended up creating an instance of XsltListViewWebPart instead. Calling RenderControl() on this does support aggregrates, etc. It went something like this:
A little more complicated than that…. but that’s the general idea…