Thank you for using our services.
The UrlName property needs to be set before you publish the item. you can try this code bellow:
//Initializing the NewsManager with the default News provider
NewsManager manager = NewsManager.GetManager();
//creating a new news item
NewsItem item = manager.CreateNewsItem();
//setting the item's properties, content, etc.
item.Title = newsTitle;
item.Author = author;
item.Content = newsContent;
//generate URL and save changes
//up to now, the item is in Draft State. We have to call Publish method to publish it.
item = manager.Publish(item);
If you want the UrlName property to be automatically generated you can use the Fluent API approach:
var item = App.WorkWith().NewsItem().CreateNew()
nI.Title = newsTitle;
nI.Author = author;
nI.Content = newsContent;
//without the publish method, the news item is saved as draft.
All the best,
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