I am new to Kendo Grid I am gring to show data from a API using kendo and then add an addtional column for Quanity that would be an input field.
The idea is a list of items that a person can add quaity to and then click add to cart and another script runs.The script would add the items to a separate area.
I believe I have the button working to add items but I am having difficulty with adding the input column as it is not bound to the data source.
Is this possible? I have looked at using Row Templates but they seem to bond back to the data source. Can some one help provide some idea?
Hi everybody,
I am continuing my diagram development and facing the following issue.
I need to have a Yes No check on the component (as per the drawing), I would like to know if it is doable and if it can be linked to the component data.
thanks for the support
Ray
Hello, I would like to localize a kendo grid so that all messages and formats are using a specific language (german in my case).
By default, the grid uses english language.
I tried to include the language script and kendo.culture in the view.
<script src="@Url.Content("~/lib/kendo-ui/js/cultures/kendo.culture.de-DE.min.js")"></script>
kendo.culture('de-DE');
This causes two problems. The culture is now changed globally, whereas I would only like to localize a specific control.
Secondly, if I edit a cell in the grid, it does not display the german format, but uses english format.


Several of the examples use a getFileInfo(e) routine to pull out the file list in the upload control. This works well in events like onSelect().
Is it possible to retrieve the filename or list of files in the client side onComplete(e) event?

I am attempting to add a RadialGuage to a TileLayout - without many options other than the value, this works just fine, however when adding ranges for color bands, the rendering fails and I get a javascript error in the browser console.
I'm not sure if this has something to do with having to use ToClientTemplate() or not, however I'm stumped and have been unable to workaround this so far:
<script id="radial" type="text/x-kendo-template"><div id="gauge-container"> @(Html.Kendo().RadialGauge() .Name("gauge") .Pointer(pointer => pointer.Value((int)Model.DialValue)) .Scale(scale => scale .MinorUnit(5) .StartAngle(-30) .EndAngle(210) .Max(125) .Labels(labels => labels .Position(GaugeRadialScaleLabelsPosition.Inside) .Font("20px Arial") ) .Ranges(ranges => { ranges.Add().From(0).To(75).Color("#f44004"); ranges.Add().From(75).To(100).Color("#a2dd21"); ranges.Add().From(100).To(125).Color("#2cb235"); }) ).ToClientTemplate() ) <span class="widgetlabel">Overall Efficiency<br />@Model.DialValue%</span></div></script>Hi,
In my clientTemplate I try to do the following:
"<div style=\"display:#if(MimeType == 'application/pdf') {#block#} else {#none#}# \">" +But when I compare to string it keept giving me an error
"Error: Invalid template:'"
and I treid a lot if different ways to do this.
If I compare to a boolean or integer it goes ok, but for some reason I can't get string compare to work.
Can someone help me out?
thank you.
Hello all,
i have been struggling for several days with the export PDF function in MVC Scheduler. When i click the export button i receive a 404 not found in my console. I have already try changing the bundle config, i have moved my files to differents folders, i have included them in my index.cshtml, everything. But i still receive this message, even if my files are on the url that is shown in my console, i really don't know how to make it work. I give you my project folder structure to see if there is something wrong with it. I'm trying it in my development pc.
I hope you can help me, i don't know how to tell my boss that i have spent this amount of hours with this export.
Thank you very much.
thia my index.cshtml
@(Html.Kendo().Grid<empdepkendo.Models.Employee>
()
.Name("persons")
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(m => m.ID))
.Read(read => read.Action("GetAllEmployees", "Employees"))
.Update(up => up.Action("UpdateEmployee", "Employees"))
)
.Columns(columns =>
{
columns.Bound(c => c.ID).Width(200);
columns.Bound(c => c.FirstName);
columns.Bound(c => c.LastName);
columns.Command( cmd => cmd.Edit());
})
.Pageable()
.Sortable()
.Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("Person"))
)
/
this EditorTemplat/Person.cshtml
@model empdepkendo.Models.Employee
@(Html.Kendo().Grid<empdepkendo.Models.Employee>
()
.Name("EmpGrid")
.Columns(columns =>
{
columns.Bound(c => c.ID).Width(200);
columns.Bound(c => c.FirstName);
columns.Bound(c => c.LastName);
columns.Command(cmd => cmd.Edit()
);
})
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(m => m.ID))
.Read(read => read.Action("Editer", "Employees", new { ID })) ///i want to pass the id here
.Update(update=>update.Action("UpdateEmployee","Employees"))
)
)
Cpublic class TestGrid { public string col {get;set;} public string colFirst {get;set;} public List<Temp> temps {get;set;}} public class Temp { public string Id {get;set;} public bool IsIt {get;set;} public bool DoesNeeded {get;set;}}
How to make table with this class?
I need like
col, colFirst, temps1, temps2, temp3 etc
col, colFirst, temps1, temps2, temp3 etc
col, colFirst, temps1, temps2, temp3 etc
I need to filter it and create new objects.
