New Event fields
Hi,
Just read the response again, will the RC have this feature as currently everything I try to do is not available.
Regards,
Neil
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
);
<sf:FieldListView ID=
"MyFields"
runat=
"server"
Text=
"Custom Fields: "
Properties=
"NewStringField
, NewDateField
"
WrapperTagName=
"li"
/>
Hi,
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