Skip to content

Instantly share code, notes, and snippets.

@jbristowe
Created June 15, 2012 04:40
Show Gist options
  • Save jbristowe/2934695 to your computer and use it in GitHub Desktop.
Save jbristowe/2934695 to your computer and use it in GitHub Desktop.
HTML Helper Basics of Kendo UI for ASP.NET MVC Beta
<%: Html.Kendo().Calendar()
.Name("calendar")
%>
@(Html.Kendo().Calendar()
.Name("calendar")
)
<%: Html.Kendo().Calendar()
.Name("calendar")
.Events(e => e.Change("change"))
%>
<script>
function change() {
// handle the date change event here...
}
</script>
@(Html.Kendo().Calendar()
.Name("calendar")
.Events(e => e.Change("change"))
)
<script>
function change() {
// handle the date change event here...
}
</script>
@(Html.Kendo().Calendar()
.Name("calendar")
.Events(e => e
.Change(@<text>
function() {
/// handle the date change event here...
}
</text>)
)
)
<%: Html.Kendo().Calendar()
.Name("calendar")
.Value(DateTime.Today)
%>
@(Html.Kendo().Calendar()
.Name("calendar")
.Value(DateTime.Today)
)
<div class="k-widget k-calendar" id="calendar"></div>
<script>
jQuery(function(){jQuery("\#calendar").kendoCalendar({});});
</script>
<div class="k-widget k-calendar" id="calendar"></div>
<script>
jQuery(function(){jQuery("\#calendar").kendoCalendar({value:new Date(2012,5,7,0,0,0,0)});});
</script>
<div class="k-widget k-calendar" id="calendar"></div>
<script>
jQuery(function(){jQuery("\#calendar").kendoCalendar({change:change});});
</script>
<script>
function change() {
// handle the date change event here...
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment