Hello,
Im triyng to build a schedular that has a different template for an existing event, but also return the standard create event template when it's a new event.
var d = new Date();
d.setHours((d.getHours() - 4), 0, 0, 0);
$("#scheduler").kendoScheduler({
date: new Date(),
startTime: d,
views: [
"day",
{ type: "workWeek", selected: true },
"week",
"month",
"agenda",
{ type: "timeline", eventHeight: 50 }
],
editable: {
template: function (
if (e.taskId > 0) { // check if new or existing task by e.taskId
return $("#contactForm").html();
}
return // this is where i want to return the standard template.....
}
},
edit: function (e) {
var buttonsContainer = e.container.find(".k-edit-buttons");
var cancelButton = buttonsContainer.find(".k-scheduler-cancel");
var saveButton = buttonsContainer.find(".k-scheduler-update");
saveButton.html($("#contactForm .k-buttons .add-button")[0]);
cancelButton.html($("#contactForm .k-buttons .cancel-button")[0]);
},
timezone: "Etc/UTC",
dataSource: {
transport: {
read: {
url: "/api/calendar/GetAgendaItems",
contentType: "application/json; charset=utf-8",
method: "GET",
dataType: "json",
isASPNETPost: false,
data: { EmployeeId: '71' }
},
update: {
url: "/api/calendar/UpdateAgendaItem",
method: "PUT",
dataType: "json"
},
create: {
url: "/api/calendar/CreateAgendaItem",
method: "",
dataType: "json"
},
destroy: {
url: "/api/calendar/AgendaItem",
method: "DELETE",
dataType: "json"
},
parameterMap: function (options, operation) {
console.log(kendo.stringify(options), operation);
if (operation !== "read" && options.models) {
return options.models[0];
//return kendo.stringify(options);
}
return options
}
},
schema: {
model: {
id: "taskId",
fields: {
taskId: { from: "taskID", type: "number" },
title: { from: "title", defaultValue: "No title", validation: { required: true } },
start: { type: "date", from: "startTime" },
end: { type: "date", from: "endTime" },
startTimezone: { from: "startTimezone" },
endTimezone: { from: "endTimezone" },
description: { from: "description" },
recurrenceId: { from: "recurrenceID" },
recurrenceRule: { from: "recurrenceRule" },
recurrenceException: { from: "recurrenceException" },
ownerId: { from: "ownerID" },
isAllDay: { type: "boolean", from: "isAllDay" }
}
}
}
},
resources: [
{
field: "ownerID",
title: "HomeVisitor",
dataSource: {
transport: {
read: {
url: "/api/calendar/GetEmployees",
method: "GET"
}
}
}
}
]
});
Hello,
is there any way to customize "timeline month" (or any other view) so that it shows
each day (in selected month) in its own row. Check image...
Is there any different view or some other control that I can use for my problem...
Thank you.
I've got a Kendo UI scheduler which binded to remote data source.
I create first event and see a HTTP POST request to the server with JSON data and Id = 0 in it, then I create the second one I also see HTTP POST request but Id still = 0. Any attempt to edit any of those events trigger CREATE url call again so it's actualy not working at all.
Here is scheduler data source configuration.
dataSource: {
// configuration for kendo.data.SchedulerDataSource
transport: {
read: {
url:
"/api/scheduler/events"
,
dataType:
"json"
},
create: {
url:
"/api/scheduler/event"
,
dataType:
"json"
},
update: {
url:
"/api/scheduler/event-update"
,
dataType:
"json"
},
destroy: {
url:
"/api/scheduler/delete"
,
dataType:
"json"
},
parameterMap:
function
(data, type) {
console.log(type);
return
kendo.stringify(data);
}
},
schema: {
model: {
id:
"taskId"
,
fields: {
taskId: { from:
"Id"
, type:
"number"
},
title: { from:
"Title"
, defaultValue:
"Empy"
, validation: { required:
true
} },
start: { type:
"date"
, from:
"Start"
},
end: { type:
"date"
, from:
"End"
},
startTimezone: { from:
"StartTimezone"
},
endTimezone: { from:
"EndTimezone"
},
description: { from:
"Description"
},
recurrenceId: { from:
"RecurrenceID"
},
recurrenceRule: { from:
"RecurrenceRule"
},
recurrenceException: { from:
"RecurrenceException"
},
ownerId: { from:
"OwnerID"
, defaultValue: 1 },
isAllDay: { type:
"boolean"
, from:
"IsAllDay"
},
eventTypeId: { from:
"EventType"
, type:
"number"
}
}
}
}
},<
add
namespace
=
"Kendo.Mvc.UI"
/>
@(Html.Kendo().DatePicker().Name("datepicker"))
When I run the application, I get the following error:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1061: 'HtmlHelper<
dynamic
>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'HtmlHelper<
dynamic
>' could be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 1: @(Html.Kendo().DatePicker().Name("datepicker"))
Line 2:
Source File: c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\Views\Default\Index.cshtml Line: 1
Show Detailed Compiler Output:
C:\Program Files (x86)\IIS Express>c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\bin\roslyn\csc.exe /t:library /utf8output /nostdlib+ /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f1791cfc\00fedeb6_12ccd101\Microsoft.AspNetCore.Diagnostics.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\92247743\0067245d_74c5d101\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\90044040\00fedeb6_12ccd101\Microsoft.AspNetCore.DataProtection.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d2c50e18\00fedeb6_12ccd101\Microsoft.AspNetCore.Http.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\19f209ab\00fedeb6_12ccd101\Microsoft.AspNetCore.Http.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\0eba250e\005841b9_12ccd101\Microsoft.Extensions.Caching.Memory.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\5455a925\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Formatters.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\e3833175\005841b9_12ccd101\Microsoft.Extensions.DependencyInjection.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\c97f9c34\005841b9_12ccd101\Microsoft.Extensions.FileProviders.Physical.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\a166e5a7\00fedeb6_12ccd101\Microsoft.AspNetCore.JsonPatch.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\31213991\00bc6bbe_accbd101\Microsoft.Extensions.DependencyModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\47b4ad8c\002b10b8_12ccd101\Microsoft.AspNetCore.Razor.Runtime.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\9241f5b5\005841b9_12ccd101\Microsoft.Extensions.Globalization.CultureInfoCache.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\1761ee9b\00fedeb6_12ccd101\Microsoft.AspNetCore.Cryptography.Internal.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\210bd1b1\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.ViewFeatures.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d548f9b8\009fadb9_8bc7d101\Kendo.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\e27776e5\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Razor.Host.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Collections.Immutable\v4.0_1.1.37.0__b03f5f7f11d50a3a\System.Collections.Immutable.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\6769c9a2\00a9c4ea_2350d201\Microsoft.AI.WindowsServer.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\ef0793d8\00a37050_533ad001\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\6ff62d98\002b10b8_12ccd101\Microsoft.AspNetCore.Routing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\a399d9bc\005841b9_12ccd101\Microsoft.Extensions.Localization.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\4702e828\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.Cors.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\28877dbe\fceb1810_c3a7d201\TryTelerik.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\de912f90\0038bfe9_a7a9d001\Microsoft.CodeAnalysis.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d77c2df5\00fedeb6_12ccd101\Microsoft.AspNetCore.Html.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\ecaf405e\00a37050_533ad001\System.Web.WebPages.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\644de8e3\0014af3a_e3c3d101\System.Text.Encodings.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\58699317\00fedeb6_12ccd101\Microsoft.AspNetCore.Localization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\fff6a83a\00fedeb6_12ccd101\Microsoft.AspNetCore.DataProtection.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\5235512e\00a37050_533ad001\System.Web.WebPages.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\255fd3e9\00856c07_e3c3d101\System.ComponentModel.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\6497b2ab\00e8e097_764fd201\Microsoft.ApplicationInsights.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\a97aaec9\0047b3b8_2350d201\Microsoft.AI.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\0b21a7c4\00fedeb6_12ccd101\Microsoft.AspNetCore.Http.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\4e7a8543\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.DataAnnotations.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\3ed3952a\005841b9_12ccd101\Microsoft.Extensions.Configuration.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2c22be85\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\9aaa5dcc\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.ApiExplorer.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2323f0bc\005841b9_12ccd101\Microsoft.Extensions.FileSystemGlobbing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\947e4a27\0063aead_c74ad201\Microsoft.AI.Agent.Intercept.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2c456958\005841b9_12ccd101\Microsoft.Extensions.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f8b33333\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\8cb11b63\00fedeb6_12ccd101\Microsoft.AspNetCore.Hosting.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d4344293\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Localization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\3e81f2e2\000c000b_e3c3d101\System.Diagnostics.DiagnosticSource.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2ef75195\005841b9_12ccd101\Microsoft.Extensions.Localization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\e8f6da9c\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.TagHelpers.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\d120fd55\002b10b8_12ccd101\Microsoft.AspNetCore.Routing.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f1b20bb3\00d1a702_e3c3d101\System.Buffers.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\2b5b2748\0043d8e6_0821cd01\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\bb18d9aa\008f3abd_accbd101\Microsoft.DotNet.InternalAbstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\77b7f9dd\00a37050_533ad001\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\eedbf32d\0065f0ea_a7a9d001\Microsoft.CodeAnalysis.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\af6bd456\005841b9_12ccd101\Microsoft.Extensions.FileProviders.Composite.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\95f93a1a\005841b9_12ccd101\Microsoft.Extensions.Caching.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\30acecea\005841b9_12ccd101\Microsoft.Extensions.DependencyInjection.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\ddd76814\005841b9_12ccd101\Microsoft.Extensions.Logging.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\073ff0de\0058dcad_b3a6d001\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\5b3dbd7a\005841b9_12ccd101\Microsoft.Extensions.WebEncoders.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\85333a01\005841b9_12ccd101\Microsoft.Extensions.FileProviders.Abstractions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\a8418927\00fedeb6_12ccd101\Microsoft.AspNetCore.Cors.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\834e6d9b\00fedeb6_12ccd101\Microsoft.AspNetCore.Hosting.Server.Abstractions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\59cf3159\00fedeb6_12ccd101\Microsoft.AspNetCore.Http.Features.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f59c2b0c\00d1adb5_12ccd101\Microsoft.AspNetCore.Authorization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\03249af6\000c000b_e3c3d101\System.ComponentModel.TypeConverter.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\App_global.asax.z8vazoto.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\78225818\0065f0ea_a7a9d001\System.Reflection.Metadata.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\4959c6c5\0032126c_774fd201\Microsoft.AI.ServerTelemetryChannel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\58786417\002b10b8_12ccd101\Microsoft.AspNetCore.Mvc.Formatters.Json.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f8e173b1\00a9c4ea_2350d201\Microsoft.AI.PerfCounterCollector.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\fb1d555b\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\3324d64b\00fedeb6_12ccd101\Microsoft.AspNetCore.Mvc.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\08710bdb\0009c301_533ad001\System.Web.Mvc.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\acebe475\00d1adb5_12ccd101\Microsoft.AspNetCore.Antiforgery.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\dceea3fb\0066620d_e3c3d101\System.Data.Common.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\bdddc8e3\005841b9_12ccd101\Microsoft.Net.Http.Headers.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\f1df28e0\005841b9_12ccd101\Microsoft.Extensions.ObjectPool.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\fb3c5e06\002b10b8_12ccd101\Microsoft.AspNetCore.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\fd20507f\00ffb83c_2350d201\Microsoft.AI.DependencyCollector.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\8f655118\00441b0a_533ad001\System.Web.Razor.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\998079cb\002b10b8_12ccd101\Microsoft.AspNetCore.WebUtilities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\abb7b7b0\005841b9_12ccd101\Microsoft.Extensions.Options.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\assembly\dl3\c38742ee\005841b9_12ccd101\Microsoft.Extensions.PlatformAbstractions.dll" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\App_Web_index.cshtml.6373d792.slxlg9h_.dll" /D:DEBUG /debug+ /optimize- /warnaserror- /w:4 /nowarn:1659;1699;1701;612;618 /langversion:6 /nowarn:1659;1699;1701 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\App_Web_index.cshtml.6373d792.slxlg9h_.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\edd7f2e4\a4f5c36c\App_Web_index.cshtml.6373d792.slxlg9h_.1.cs"
Microsoft (R) Visual C# Compiler version 1.0.0.50618
Copyright (C) Microsoft Corporation. All rights reserved.
c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\Views\Default\Index.cshtml(1,12): error CS1061: 'HtmlHelper<
dynamic
>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'HtmlHelper<
dynamic
>' could be found (are you missing a using directive or an assembly reference?)
Show Complete Compilation Source:
Line 1: #pragma checksum "c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\Views\Default\Index.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "52F2ED52085D445129A34B8F54DF8323049258AB"
Line 2: //------------------------------------------------------------------------------
Line 3: // <
auto-generated
>
Line 4: // This code was generated by a tool.
Line 5: // Runtime Version:4.0.30319.42000
Line 6: //
Line 7: // Changes to this file may cause incorrect behavior and will be lost if
Line 8: // the code is regenerated.
Line 9: // </
auto-generated
>
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace ASP {
Line 13: using System;
Line 14: using System.Collections.Generic;
Line 15: using System.IO;
Line 16: using System.Linq;
Line 17: using System.Net;
Line 18: using System.Web;
Line 19: using System.Web.Helpers;
Line 20: using System.Web.Security;
Line 21: using System.Web.UI;
Line 22: using System.Web.WebPages;
Line 23: using System.Web.Mvc;
Line 24: using System.Web.Mvc.Ajax;
Line 25: using System.Web.Mvc.Html;
Line 26: using System.Web.Routing;
Line 27: using TryTelerik;
Line 28: using Kendo.Mvc.UI;
Line 29:
Line 30:
Line 31: public class _Page_Views_Default_Index_cshtml : System.Web.Mvc.WebViewPage<
dynamic
> {
Line 32:
Line 33: #line hidden
Line 34:
Line 35: public _Page_Views_Default_Index_cshtml() {
Line 36: }
Line 37:
Line 38: protected ASP.global_asax ApplicationInstance {
Line 39: get {
Line 40: return ((ASP.global_asax)(Context.ApplicationInstance));
Line 41: }
Line 42: }
Line 43:
Line 44: public override void Execute() {
Line 45: BeginContext("~/Views/Default/Index.cshtml", 2, 44, false);
Line 46:
Line 47:
Line 48: #line 1 "c:\users\navin.choubey\documents\visual studio 2015\Projects\TryTelerik\TryTelerik\Views\Default\Index.cshtml"
Line 49: Write(Html.Kendo().DatePicker().Name("datepicker"));
Line 50:
Line 51:
Line 52: #line default
Line 53: #line hidden
Line 54: EndContext("~/Views/Default/Index.cshtml", 2, 44, false);
Line 55:
Line 56: BeginContext("~/Views/Default/Index.cshtml", 47, 4, true);
Line 57:
Line 58: WriteLiteral("\r\n\r\n");
Line 59:
Line 60: EndContext("~/Views/Default/Index.cshtml", 47, 4, true);
Line 61:
Line 62: }
Line 63: }
Line 64: }
Line 65:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1086.0
Please find in attachment Web.config files (the one from Views folder and the main one) and the Layout page.
I got your new grip package and there seems to be a problem with how the sorting works when combined with header template. In the example below you can see the problem. Try sorting by "Product name". When you click on the template the sort does not work. If you click on the link outside the div element then the sort works.
http://plnkr.co/edit/SukCe787HAwIwEgnRiC4?p=preview
The problem comes from how the sortColumn handler in header.component is defined. Apparently if the target is not the link element then the sort operation is interrupted. Does this mean that each header template must handle click events (for sorting) internally?
HeaderComponent.prototype.sortColumn = function (column, event, link) {
var target = event ? event.target : null;
if (column.headerTemplateRef && target !== link) { // this is the problem
return false;
}
...
};
How are we supposed to use the grid's sort logic with header templates?
P.S. clicking on the sort arrow icon also does not fire the sort event.
Hello there,
I'm developing a AngularJS (1) application and want to use the Grid widget with a virtual scrolling enabled.
Data comes from an API call which returns a JSON object in the following format:
{
gridOptions: { ... }
dataSource: { ... }
data: { Array[row objects] }
total: { ... }
}
A custom read() function is used to fetch new data from the server. It gives the above mentioned JSON object to the grid via e.success().
However when scrolling down the grid at first a request is made and when scrolling further down at a certain point new requests are started over and over, each with query parameters for the next and the previous data page, in alternating order. The data is never bound and the grid remains unusable.
I attached the JSON response from the server which contains gridOptions, dataSource and data.
I'd be really thankful if you could offer some advice on how to solve this.
Best regards
Hi, I'm having a problem that, while I'm posting a formulary (the submit actions is catched by the jQuery submit event) all kendo-directive componentes are removed from the DOM.
I think it probably have to do with something I've been doing outside, like a somekind of watcher, but it's strange because it only happens with some components (slider or editor, for instance, remain intact). And all other inputs (components that have nothing to do with kendo.ui itself) work just fine.
I was wondering, could It be possible that any watcher maybe interacting in a bad way with the kendo inputs?
All others like numeric-text-box, date-picker, date-time-picker, time-picker, etc. All have this problem.
I am trying to build grids using Kendo - Angular2. I am generating the grid completely dynamically from the Json data. I want to apply styling to few columns based on the column name. By using the below code, I am able to generate the grid, but couldn't able to apply styling to few columns based on the column name.
<kendo-grid [kendoGridBinding]="gridData" [pageSize]="10" [pageable]="true" [sortable]="true" [groupable]="true" [height]="370">
<kendo-grid-column *ngFor="let col of columns" field="{{col.Name}}" title="col.Name" [sortable]="true">
</kendo-grid-column>
</kendo-grid>
My Json structure.
{
"Id": "ALFKI",
"CompanyName": "Alfreds Futterkiste",
"ContactName": "Maria Anders",
"ContactTitle": "Sales Representative",
"Address": "Obere Str. 57",
"City": "Berlin",
"PostalCode": "12209",
"Country": "Germany",
"Phone": "030-0074321",
"Fax": "030-0076545"
}