Telerik MVC controls cannot be used in DotVVM pages right now, we are thinking about MVC interop, but it's not in the framework yet.
But the MVC controls are wrappers for Telerik Kendo UI which can be used without ASP.NET MVC.
There a nice Knockout Kendo library which allows to use the Kendo UI controls with Knockout JS. Since DotVVM is based on Knockout JS, you can use the data-bind
syntax in your DOTHTML pages and access the viewmodel properties:
<input data-bind="kendoNumericTextBox: Price" />
The viewmodel looks like this:
public class MyPageViewModel
{
public decimal Price { get; set; }
}
There will certainly be some limitations and unfortunately there are no DotVVM wrappers for Kendo UI, but the basic controls can work like this.
If you have more complex scenarios (DataGrid control or something like this), you can use the plain JavaScript solution and access the viewmodel properties using the following JavaScript syntax:
dotvvm.viewModels.root.viewModel.Price()
But the viewmodel is not a plain JS object, it is wrapped with Knockout observables, so you have to unwrap everything, or use dotvvm.serialization.serialize
to build plain JS objects.