I am trying to programmatically get the content from all the list items present in a list that I created in Sitefinity. I am trying to access the title and content in each of the list items and display it on a page. I am trying to databind the content that I get from the list of RadListView. Could you please suggest me any posts/documentation where I can find more information about getting content from a list and databind it to a RadListView?
I have looked the API and I am having difficulty in getting the content for each of the items in the list. I am using the following code below:
ListsManager manager = ListsManager.GetManager();
ListItem listitems = manager.GetListItems()
.Where(i => i.Parent.Title == "FAQ")
I have tried to loop through the listitems using foreach, but I am getting the error saying that "foreach statement cannot operate on variables of type 'Telerik.Sitefinity.Lists.Model.ListItem' because 'Telerik.Sitefinity.Lists.Model.ListItem' does not contain a public definition for 'GetEnumerator'"
Could you please suggest me how can I get the content as well as the title from the list items and display it on a page.