I am unable to get my grid to filter on more than 1 column. When I try to add the 2nd filter I get a 500 error because it seems Kendo is trying to make a call to my MVC action without any parameters. I'm getting this behavior on 2 different grid and dataources.
Grid (shortened):
@(Html.Kendo().Grid<FooItemViewModel>()
.Name("FooGrid")
.Columns(column =>
{
column.Bound(p => p.FooTypeCode).Title("Type").Width(22);
column.Bound(p => p.FooCode).Title("Foo Code").Width(40);
column.Bound(p => p.FooDesc).Title("Foo Description").Width(260);
column.Bound(p => p.ReportCode).Title("Report").Width(20);
})
.Filterable()
.Sortable()
.Pageable(builder => builder.PageSizes(new[] { 10, 25, 100 }))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(25)
.Model(m =>
{
m.Id(s => s.FooID);
m.Field(s => s.FooID).Editable(false);
})
.Read(read => read.Action("Read", "Foo"))
.Create(create => create.Action("Create", "Foo"))
.Update(update => update.Action("Update", "Foo"))
.Destroy(update => update.Action("Delete", "Foo"))
.Events(events => events.Error("onDataSourceError"))
))
Controller:
public JsonResult Read([DataSourceRequest] DataSourceRequest request)
{
var Foos = _db.Foos.Project().To<FooItemViewModel>();
DataSourceResult response = Foos.ToDataSourceResult(request);
return Json(response, JsonRequestBehavior.AllowGet);
}
I have tried adding .ServerOperation(true), but that does not work. When the grid first loads I hit the Read action with empty datasourcerequest as expected. When I add a filter I also hit the server read action with a datasourcerequest and the expected column filter passed in. When I select a 2nd column filter and click "Filter" I get the 500 error in the console because it appears it tries to just call \Foo\Read without any parameters.
I see a "serverFiltering: true" in jquery version, but no equivalent in the MVC wrappers. Any help appreciated.
I am using the calendar and the scheduler and would like to integrate them so that when the date is selected on the calendar all the "appointments" for that day show on the scheduler next to it.
It is just a basic calendar and scheduler.
I would like it to look like the attachment

When I am using the calendar it is very small and I would like to expand it to fit the entire page width
Here is the code I am using:
<div style="text-align:center;"> @(Html.Kendo().Calendar().Name("calendar"))</div>I am not sure if it would be in the css or if I can use the inline styling
Hello,
I have an image browser that users are going to be uploading a large number of files to. I'm wondering if it is possible to do one of the following two things to help them manage these images:
1) Sort images shown in the browser by date, rather than name.
2) Automatically select an image on upload.
Thank you!
Hello,
Today I just updated our project to ASP.NET Core 2.0. It looks like this broke my Kendo grids. Is this a known problem, if so will it be fixed soon? The stack trace shows this is happening in the Kendo code.
TypeLoadException: Could not load type 'Microsoft.AspNetCore.Mvc.ModelBinding.ValueProviderResultExtensions' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
Hi,
I'm having some trouble with setting a DropDownList value while editing a grid inline.
This is my datasource for the DropDownList:
01.var baseTypesDataSource = new kendo.data.DataSource({02. type: "json",03. transport: {04. read: {05. url: "Profile/GetBaseTypes"06. }07. },08. schema: {09. model: {10. id: "merchandisingBaseTypeId",11. fields: {12. merchandisingBaseTypeId: { type: "number" },13. merchandisingBaseType: { type: "string" }14. }15. }
This is my grid:
01.$("#merchandisingProfileGrid").kendoGrid({02. dataSource: profilesDS,03. columns: [04. { field: "profileNo", title: "Profile No" },05. { field: "palletBay", title: "Pallet Bay", editor: booleanEditor, template: kendo.template($("#palletBayTemplate").html()) },06. { field: "merchandisingBaseType", title: "Base Type", editor: BaseTypesDropdowns, template: kendo.template($("#baseTypeTemplate").html()) },07. { field: "quantity", title: "Overs Qty" },08. { field: "comments", title: "Notes" },09. { command: ["edit"], width: "200px" }10. ],11. editable: "inline",12. filterable: true13.});
And this is my custom editor for the DropDownList:
01.function BaseTypesDropdowns(container, options) {02. $('<input id="bt_' + options.model.id + '" required name="' + options.field + '" />')03. .appendTo(container)04. .kendoDropDownList({05. autoBind: true,06. dataTextField: "merchandisingBaseType",07. dataValueField: "merchandisingBaseTypeId",08. dataSource: baseTypesDataSource,09. dataBound: function (e) {10. $("#bt_" + options.model.id).data("kendoDropDownList").value(options.model.merchandisingBaseTypeId);11. },12. change: function (e) {13. var dataItem = e.sender.dataItem();14. options.model.set("merchandisingBaseTypeId", dataItem.merchandisingBaseTypeId);15. }16. });17.}
I am simply trying to retain the grid value in the dropdown when I edit a row inline.
The above code does correctly work the first time I edit a row, however on subsequent edits the dropdown loads displaying blank, but has the correct value seelcted when I expand the dropdown (can be seen in the attached image).

Can UI for ASP.NET MVC Window be resized?
I want to make Window resizable by dragging its border, like Windows Explorer' s form. Is it possible?
Hi,
I am using a DataTable to automatically generate grid columns as in the "binding-to-datatable" example. This is working well, but I can't figure out how to create a dropdown list for a given known column.
Prior to autogenerating the columns, I would use "EditorTemplateName" to specify the editor template. Can this be done with autogenerated columns, and if so, how? Is there an example of this being done?
Thanks in advance,
Ryan

When using RowTemplate, the html output contains empty rows (see attachments, marked items in yellow) which I can't find the option to no render them.
Grid:
@(Html.Kendo().Grid<ePower.Mvc.Areas.PM.Models.ObjectiveListData>(Model.Data)
.Name("ObjectiveListView")
.Columns(columns =>
{
columns.Bound(c => c.Item1).Visible(Model.Item1Used).Title(Model.Item1Header);
columns.Bound(c => c.Item2).Visible(Model.Item2Used).Title(Model.Item2Header);
columns.Bound(c => c.Employees).Title(EPower.Utils.Web.Configuration.WebSettings.Settings.LabelManager.GetString("PM_TeamObjective_ObjectiveListView_EmployeeHeader"));
columns.Bound(c => c.Item4).Visible(Model.Item4Used).Title(Model.Item4Header);
})
.RowTemplate(template =>
@<text>
<tr>
@if (Model.Item1Used)
{
<td>@item.Item1</td>
}
@if (Model.Item2Used)
{
<td>
<div class="item2">@item.Item2</div>
<div class="item3">@item.Item3</div>
</td>
}
<td>@Html.Raw(item.Employees)</td>
@if (Model.Item4Used)
{
<td>@item.Item4</td>
}
</tr>
</text>)
.NoRecords(EPower.Utils.Web.Configuration.WebSettings.Settings.LabelManager.GetString("PM_TeamObjective_ObjectiveListView_NoResult"))
)
How to force the grid item into a single line stop text from wrapping ?
+ ---------------------------------------------------------+
| column 1 | column 2 | column 3
+ ---------------------------------------------------------+
| data 1 | data 2 .... | data 3
+ ---------------------------------------------------------+
instead of:
+ -------------------------------------------+
| column 1 |column n | column 3
+ -------------------------------------------+
| data 1 | data 2 t| data 3
| | testing |
+ ---------------------------------------------------------+
