5 Answers, 1 is accepted
Not sure why they would take away functionality, but it seems as if they did.
Although, the DefaultDataItem has been removed the default values can be set through DataSource Model definition. Please refer to this help article for more details.Regards,
the Telerik team
Just set your default values like this:
It's a bummer that there's no adequate replacement for DefaultDataItem(), since I don't want to set the DefaultValue() for every field manually.
For everybody who's interested, I wrote an extension method that accomplishes the core functionality of DefaultDataItem(). It reads every property of a default item and sets the Field() and DefaultValue() in the data source model definition:
Use it like this: