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.
I have a use case in which I have the user uploading a file to a memory stream via Kendo Uploader. From there, information is extracted from the file and recorded in the database.
What I'd like to be able to do is enable the user to use something like the FileManager to navigate to a folder either on their local hard drive or a UNC path to a network share and select each of the files to be processed. I would like to have each of the files in turn uploaded and processed as described in the first paragraph. I know I can accomplish that with the Uploader. However, what I'd also like to do subsequently is after the file is processed, move the process file from the local drive folder or network share to a folder within the source folder as a way of letting the user know the file has been processed and should not be selected again.
Can I 1) act on selected local/client-side files, 2) move client-side files to a location w/in the client-side directory? If so, can you provide an example or link to documentation of how to do this?
Patrick
Hi Team,
We have observed that validation messages are firing in only Submit(Add Button) click event in 2016 kendo Version.
But in latest 2020 Kendo version, validation messages are firing in mouse click events and Tab events.
Kindly help on this to trigger only Button click event.
$(
'input[id="Name"]'
).live(
'change keyup'
,
function
() {
var
urlSegment = $(
'input[id="UrlSegment"]'
);
urlSegment.val(
"Test"
);
});