<h1>
    Events
</h1>
<p>
    HTML5 has an eventing mechanism that works for HTML elements.
    But, it cannot be used to add events to arbitrary objects,
    such as controls and collections.
</p>
<p>
    To handle this, we defined an <b>Event</b> class. Any class
    may define events by declaring them as fields, and any class may
    add or remove event handlers using the event's <b>addHandler</b>
    and <b>removeHandler</b> methods.
</p>
<p>
    You may also declare event handlers as <b>options</b> in the 
    <b>initialize</b> method of any MVC control.
</p>
<p>
    These event handlers take two parameters: <b>sender</b>
    and <b>args</b>.
    <b>Sender</b> is an object that raised the event, and <b>args</b>
    is an object that contains the event parameters.
</p>
<p>
    Below are some input controls with the event handlers
    attached to them:
</p>
<p>
    @(Html.C1().ComboBox()
    .Id("theComboBox")
    .Bind((List<string>)ViewBag.Countries))

    @(Html.C1().InputDate().Id("theDate"))
</p>

<div class="panel panel-warning">
    <div class="panel-heading">
        For more details on C1 MVC and HTML events, please refer to
        our blog on
        <a href="http://wijmo.com/blog/html-and-wijmo-events/" target="_blank">HTML and Wijmo Events</a>.
    </div>
</div>