I have created an MVC ASP.NET 5 Web API project which uses DNX 4.5.1
I am trying to create a gantt chart in my .cshtml view file via the following code:
<div id="gantt">
@(Html.Kendo().Gantt<GanttData, DependencyViewModel>()
.Name("Gantt")
.DataSource(ds => ds
.Read(read => read
.Action("Tasks", "Home")
)
.Model(m =>
{
m.Id(f => f.TaskID);
m.ParentId(f => f.ParentID);
m.OrderId(f => f.OrderId);
m.Field(f => f.Expanded).DefaultValue(true);
})
)
.DependenciesDataSource(ds => ds
.Read(read => read
.Action("Dependencies", "Home")
)
.Model(m =>
{
m.Id(f => f.DependencyID);
m.PredecessorId(f => f.PredecessorID);
m.SuccessorId(f => f.SuccessorID);
m.Type(f => f.Type);
})
).Resizable(true)
)
</div>
The error comes from IHtmlHelper "not containing a definition" for Kendo even though Kendo.Mvc is in my project's references.
This identical code successfully generates a gantt chart in a ASP.NET 4.5.1 MVC 4 project, however.
Is there a way to create a Gantt chart in an ASP.NET 5 MVC application?
Thanks
Am I missing something? I cannot get this control to work at all. I first tried making a simple switch:
@Html.Kendo().MobileSwitch().Name("​MySwitch").Checked(true).OnLabel("Label On").OffLabel("Lable Off")
All I get is a check box. So then I tried the sample on the demo site, and that also did not work.
I am using MVC4 on VS 2015 and I used the "Configure Project" wizard to add "Asp.Net MVC" to the project.
Hello,
I need collapse the rest of de expanded rows when the user expand a new row and scroll this row to the top position of the grid. I have tried with the next code unsuccessfully.
Html.Kendo().Grid<ProductorViewModel>().Name("productors")
......
.Events(e => e
.DataBound("onDataBound")
.DetailInit("onDetailInit")
.DetailExpand("onExpand")
)
.....
<script type="text/javascript">
function onExpand(e) {
var grid = $("#productors").data("kendoGrid");
var dataView = this.dataSource.view();
var model = e.data;
for (var i = 0; i < dataView.length; i++) {
var uid = dataView[i].uid;
if (uid != model.uid) {
var tr = $("tr[data-uid=" + uid + "]");
grid.collapseRow(tr);
}
}
}
</script>
Can you help me with some example?
Thanks!
Hi,
One of my grid .update and .create action take a long time because he really has to do a lot of work in the background.
How can I force people to not pressing the update button more then ones?
Is it possible to disable the update button directly after the first time people click on it?
Thanks in advance
Maurice Lucas
I have a spreadsheet with a date column based on a smalldatetime field in a SQL table.
The spreadsheet loads correctly and the column is displayed in date format but when I try to edit the date (before saving) I receive an error in
kendo.all.min.js stating that Object doesn't support property or method 'indexOf'
I have upgraded the project to the Q2 2016 release and still have the same issue.
Any help would be appreciated.
I am new to Kendo and trying to create a custom nuget package for Kendo UI MVC 4 and 5 that only has the stuff I need. I have downloaded the Telerik.UI.for.AspNet.Mvc5.2016.2.504.nupkg package from this site to start as a base, but there are many files and many things.
I just want a nuget package that has 1) no localizations/culture specific things, 2) only has my custom theme I made with the themebuilder (attached .zip from that), which uses material as a base (I started with material and changed a few colors), 3) no source folder under content -> kendo -> 2016.2.504-source. 4) no .less, 5) no .ascx
So with those requirement what how can I make my own nuget package from that? What do I need to include to make it work?
Also why the MVC 5 web.config transformer using 5.1 when the most current version is 5.2.3? This will cause problem since the binding redirect only go up to 5.1.0.0 for MVC but my project has MVC 5.2.3?
Hi,
I am currently calling e.preventDefault(); on the click of the Update button in the Add/Edit popup of the grid.
This prevents the closing and saving and thus allows me to perform an AJAX call to the server for additional validation. However, I don't know how I can execute the default action of the Update button after my verification was successful.
Any hints?
Hello
In a grid the filter icon is overlapping the column header, so that the title is not fully shown. Please see the screenshots attached.
My current workaround is to add multiple " " to the end of each title, but I think there must be a better solution. Setting the column width manually doesn't work either, the setting has no effect.
Am I doing something wrong?
Thank you for your answer!