I have a partial view:
@ModelType ProjectCreateViewModel
@Code
Dim vdd = New ViewDataDictionary()
vdd.Add("Classes", "template")
End Code
@Html.EditorFor(Function(m) m.Project.InvoiceScheduleBasedOnDates, vdd))
In this partial view I create new ViewDataDictionary to pass additional data to my editor. In the editor I access ViewBag.Classes and its value is null. However, when I debug I can see that the ViewBag contains “Classes” key. Here a screen dump:

Why is this happening to me and what can I do to pass this value from a partial to editor template?
You could pass it as an anonymous object:
and in your template: