05 Aug 2010
09 Dec 2010
Link to this post
Im using a contentview control to display my data (or trying should I say). The problem is I am using data from two modules, i.e.
I'm looping through the content items in moduel 1, and then finding content items from module 2 that have a relationship on a specific meta key. It would have been much nicer to be able to do some sort of Linq query, but i couldnt see a way of cross referencing content items. Anyhow, because I need to output 1 list that contains information from both modules using an ILIst is not possible - this is the object that CreateContentList is expecting. I therefore created a DataTable and populated rows appropriately - however, upon binding I get the error message:
Unable to cast object of type 'System.Data.DataRowView' to type 'Telerik.Cms.Engine.IContent'.
So it seems the ContentView control is expecting an IList - how can I override this? PResumably I will then have to develop a paging control myself?