Creating C1 MVC Controls
Every MVC control is associated with an HTML element that hosts it on the page. There are three ways to create a control:
- Add the control htmlhelper in the view directly.
- Start by adding a div element to the view, then add the control htmlhelper to bind it.
- Start by adding a div element to the view, then use JavaScript code to instantiate the control and bind it to the host element.
This is a FlexGrid created using the first method:
This is a FlexChart created using the second method:
And, this is an InputDate created using the third method: