Thank you for using our services.
Bellow is a sample code snippet which you can use to add a posts view control on the page:
PageManager pageManager = PageManager.GetManager();
//get page to which we are going to add hte control
var page = pageManager.GetPageDataList().Where(t => t.Title ==
//get a placeholders lists, we are going to use this so that we define the placeholder to which we are going to add the control
List<PageControl> controls = page.Controls.Where(c=> c.IsLayoutControl ==
PageDraft editPage = pageManager.EditPage(page.Id,
//instantiate a new BlogPostsView control
BlogPostView postsView =
//create a page control from it and add it to the page
var pageControl = pageManager.CreateControl<PageDraftControl>(postsView,controls.PlaceHolder);
In the Beta 2 version due to some protection levels you cannot set the posts view properties through code, unless you are inheriting from this control. This has been fixed for the RC and when you get the RC version next week you should be able to programmatically set properties bellow you create the page control:
BlogPostView p =
p.MasterViewDefinition.ItemsPerPage = 5;
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items