I have created a ViewComponet that contains a Kendo textbox.
public async Task<IViewComponentResult> InvokeAsync(ModelExpression aspFor)
{
return View("MyView", new MyModel(){AspFor = aspFor ... });
}
My AspFor when it gets to the view is an instance of a ModelExpression, but the Kendo controls are expecting a string for the "Expression()" method.
How do I bind this Kendo control to the instance of the ModelExpression?
The TextBoxFor isn't happy and attempting to convert the ModelExpression instance back to its string doesn't result in HTML that contains all of the proper attributes on it.
Thanks
-Cam