+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / New Event fields

New Event fields

4 posts, 0 answered
  1. Neil
    Neil avatar
    82 posts
    Registered:
    21 Oct 2006
    05 Oct 2010
    Link to this post
    Hi,

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

    Regards,

    Neil
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    05 Oct 2010
    Link to this post
    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
  3. Neil
    Neil avatar
    82 posts
    Registered:
    21 Oct 2006
    05 Oct 2010
    Link to this post
    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

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Oct 2010
    Link to this post
    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
4 posts, 0 answered