While creating “FOR” controls, you have to define the properties in the View model when unobtrusive is in the enabled mode.
While creating “FOR” controls in the MVC application, when the unobtrusive is disabled, you can define the properties of your components in the builder itself, as shown in the following code example.
When the unobtrusive is in the enabled state, you have to define the properties of your components in the model. You have to define the DatePicker model in the builder as shown in the following code example.
Using that object you can set the value of the properties as shown in the following code example.
Similarly you can access all the properties and events of your components from the controller when the unobtrusive is enabled state.
You can download the complete sample under the following location.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.