Razor
2014
Imagine that you want to create edit view for Company entity which has two properties: Name (type string) and Boss (type Person). You want both properties to be editable. For Company.Name simple text input is enough but for Company.Boss you want to use jQuery UI Autocomplete widget1. This widget has to meet following requirements:
2013
Let’s suppose that we have some model that has a list property and we want to render some radio buttons for items of that list. Take the following basic setup as an example.