This question is locked. New answers and comments are not allowed.
Our company uses a custom binding-scheme with custom element naming. We don't use the default HtmlHelper.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldName to generate element names, but our own. We are now trying to incorporate the Telerik asp.net mvc controls in our site. But the only way so far to let them work with our custom binding is to set the name of each individual element.
(Where Html.GetName() uses our custom naming to generate the name)
This 'solution' is obviously not elegant and not very wrist-friendly. In your ViewComponentFactory there is a method GetName(), but it is private.
And I didn't find a way to override the implementation of TemplateInfo.GetFullHtmlFieldName().
Is there a way to change the naming of form elements globally, other than custom building Telerik.Mvc.dll from source?
Thanks in advance.
Html.Telerik().DatePickerFor(m => m.Date).Name(Html.GetName(m => m.Date))This 'solution' is obviously not elegant and not very wrist-friendly. In your ViewComponentFactory there is a method GetName(), but it is private.
And I didn't find a way to override the implementation of TemplateInfo.GetFullHtmlFieldName().
Is there a way to change the naming of form elements globally, other than custom building Telerik.Mvc.dll from source?
Thanks in advance.