I have grid with client detail template:
@(Html.Kendo().Grid<SalesOrderModel>()
.Name("SalesOrders")
.Columns(columns =>
{
columns.Bound(e => e.Number).Width(20).ClientTemplate(Html.ActionLink("#=Number#", "Edit", "SalesOrder", new { id = "#=Id#" }, null).ToHtmlString());
columns.Bound(e => e.Status).Width(20);
columns.Bound(e => e.ContractorName).Width(200);
columns.Bound(e => e.CreatedDate).Width(40).Format("{0:d}");
})
.ClientDetailTemplateId("itemsTemplate")
.Pageable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("LoadData", "SalesOrder"))
.PageSize(40)
)
.Sortable()
.Filterable())
<script id="itemsTemplate" type="text/kendo-tmpl">
@(Html.Kendo().Grid<SalesOrderItem>()
.Name("Items_#=Id#")
.Columns(columns =>
{
columns.Bound(o => o.Position).Width(20);
columns.Bound(o => o.Index).Width(100);
columns.Bound(o => o.Name).Width(200);
columns.Bound(o => o.Quantity).Width(20);
columns.Bound(e => e.UnitOfMeasure).Width(20);
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("LoadItems", "SalesOrder", new { salesOrderId = "#=Id#" }))
)
.Pageable()
.Sortable()
.ToClientTemplate()
)
</script>
@(Html.Kendo().Grid<SalesOrderModel>()
.Name("SalesOrders")
.Columns(columns =>
{
columns.Bound(e => e.Number).Width(20).ClientTemplate(Html.ActionLink("#=Number#", "Edit", "SalesOrder", new { id = "#=Id#" }, null).ToHtmlString());
columns.Bound(e => e.Status).Width(20);
columns.Bound(e => e.ContractorName).Width(200);
columns.Bound(e => e.CreatedDate).Width(40).Format("{0:d}");
})
.ClientDetailTemplateId("itemsTemplate")
.Pageable()
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("LoadData", "SalesOrder"))
.PageSize(40)
)
.Sortable()
.Filterable())
<script id="itemsTemplate" type="text/kendo-tmpl">
@(Html.Kendo().Grid<SalesOrderItem>()
.Name("Items_#=Id#")
.Columns(columns =>
{
columns.Bound(o => o.Position).Width(20);
columns.Bound(o => o.Index).Width(100);
columns.Bound(o => o.Name).Width(200);
columns.Bound(o => o.Quantity).Width(20);
columns.Bound(e => e.UnitOfMeasure).Width(20);
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("LoadItems", "SalesOrder", new { salesOrderId = "#=Id#" }))
)
.Pageable()
.Sortable()
.ToClientTemplate()
)
</script>
and everything worked perfectly until now. I changed globalization section in web.config from
<globalization enableClientBasedCulture="true" culture="auto" />
to
<globalization enableClientBasedCulture="false" culture="pl-PL" uiCulture="pl-PL" />
After this change exception is throwing by javascript "Invalid template ..."
Note that everything woks good except master-detail grid described above.
<globalization enableClientBasedCulture="true" culture="auto" />
to
<globalization enableClientBasedCulture="false" culture="pl-PL" uiCulture="pl-PL" />
After this change exception is throwing by javascript "Invalid template ..."
Note that everything woks good except master-detail grid described above.