What I am trying is creating a user control and in the click event of the button written the following code
string providerName = Telerik.Events.EventsManager.DefaultContentProvider;
Telerik.Events.EventsManager eventmgr = new Telerik.Events.EventsManager(providerName);
Telerik.Cms.Engine.ICategory newevent = eventmgr.CreateCategory();
newevent.CategoryName = TxtEventDescription.Text.ToString();
newevent.DateCreated = DateTime.Now.AddDays(1);
but the event is not saved.
Can you tell me if the above code is correct?
Do I have to publish it after I save it?
I have the publish method only in the SaveContent option.
I don’t see the event in my existing Events view Scheduler or am I missing something like, adding the event to the event view scheduler. If so how do I add it to my existing event view container?