or
@(Html.Kendo().Grid<
KendoGridApplication.Models.Order
>()
.Name("Grid")
.ToolBar(o => o.Custom().Action("Export", "Home").Name("Export"))
...
public
ActionResult Export([DataSourceRequest] DataSourceRequest request)
{
// request.Filters is null
// request.Sorts is null
Here is the sample code, could you please direct to the mistake in it or the right method using razor to acheive the same.
@model IEnumerable<KendoMVCExample.Models.CustomerAddress>
...@(Html.Kendo().TabStrip() .Name("CustomerAddressTabStrip") .Items(items => { foreach (var customer in Model) { items.Add() .Content(@<text> @RenderTableContent(customer) </text>)//<----this fails {last address is repeated on all} .Text(customer.CustomerName); //<----this works fine } }).SelectedIndex(0) ) @helper RenderTableContent(KendoMVCExample.Models.CustomerAddress customer) { <table> <tr> <td> @customer.AddressLine1<br /> @customer.AddressLine2<br /> @customer.AddressLine3<br /> </td> </tr> </table> }
var assignments = [
+new Date(2011, 12, 6),
+new Date(2011, 11, 27),
+new Date(2011, 11, 24),
+new Date(2011, 11, 16),
+new Date(2011, 11, 11)
];
$("#calendar").kendoCalendar({
value: new Date(),
month: {
// template for dates in month view
content: '# if ($.inArray(+data.date, [' + assignments + ']) != -1) { #' +
'<
div
class
=
"assignment"
></
div
>' +
'# } #' +
'#= data.value #'
},
change: onCalendarChange,
footer: "Today - #=kendo.toString(data, 'd') #"
});