New Event fields

Posted by Community Admin on 03-Aug-2018 13:03

New Event fields

All Replies

Posted by Community Admin on 05-Oct-2010 00:00

Hi,

Just read the response again, will the RC have this feature as currently everything I try to do is not available.

Regards,

Neil

Posted by Community Admin on 05-Oct-2010 00:00

Hi Neil,

Thank you for using our services.

You can add new fields to the events module using the Fluent API:

App.WorkWith()
   .DynamicData()
   .Type(typeof(Event))
   .Field().TryCreateNew("NewStringField", typeof(string)).Done()
   .Field().TryCreateNew("NewDateField", typeof(DateTime)).Done()
   .SaveChanges(true);

Unfortunately the functionality to display the newly added fields for editing does not exist yet and you would have to set those fields using the Fluent API.

Then you can display the new fields by modifying the control templates of the events control as described in our Designer's Guide. Then you just need to add new field controls by listing the properties you have just created:
<sf:FieldListView ID="MyFields" runat="server"
    Text="Custom Fields: " Properties="NewStringField, NewDateField"
    WrapperTagName="li"
/>


All the best,
Radoslav Georgiev
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 05-Oct-2010 00:00

Hi,


The data has been been inserted into sf_meta_fields I'm just not seeing the administration templates when entering through /sitefinity/Content/Events.

Regards,

Neil

Posted by Community Admin on 06-Oct-2010 00:00

Hello Neil,

In the BETA 2 you can use the dynamic fields, but you cannot show them in the backend view. We add the dynamic fields through definition classes for a module inside Install and Initialize methods. We are changing the code and we will provide an option for adding dynamic fields to the UI in the next release. Currently this will require a new module and definition for it. 

All the best,
Ivan Dimitrov
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed