Hi,
I have fileObjects and it has properties (name, extension, size, filepath). I understand name, extension and size are the reserved keywords that can be used in template code. However, i need the filepath (additional parameter) to be passed and used in template code.
So that when user click on the hyperlink, it will call the download function with two parameter (path and name). File path is mandatory because each file is stored in respective unique id (folder name) folder.
<% List<FileModel> files = ViewBag.files; %>var fileObjects = <%: Html.Raw(Json.Encode(files)) %>$("#upload-file").kendoUpload({ async: { saveUrl: "<%: Url.Action("UploadFile", ViewBag.Controller, new { topicId = Model.Id }) %>", removeUrl: "<%: Url.Action("RemoveFile", ViewBag.Controller, new { topicId = Model.Id }) %>", autoUpload: true }, template: "<span class='k-progress' style='width: 100%;'></span>" + "<span class='k-icon k-i-doc'></span>" + "<span class='k-filename' title='#=name#'><a href='\\#' onclick='downloadFile(\"#=name#\")'>#=name#</a></span>" + "<strong class='k-upload-status'>" + "<button type='button' class='k-button k-button-bare k-upload-action'>" + "<span class='k-icon k-i-close k-delete' title='Remove'></span>" + "</button>" + "</strong>", files: fileObjects, success: onSuccess, error: onError, upload: onUpload});
Thanks.
Regards,
Yap Hui Hong
I used Angular-style to create a TreeList.
In my initial test, the tree only have 3 level, root level with 1 node, second-level with 30 nodes, third-level with 1 or 2 nodes. Total are ~60 nodes.
I checked another thread mentioned that defining column template will have performance penalty and I already fixed all and it works fine on Chrome (Version 50.0.2661.102 m)
But when I use Firefox (46.0.1), it is very slow. Loading the tree is already slower than Chrome. Especially, when expand / collapse the node, it takes 3-4 seconds (while Chrome only take less than a second).
I already disabled all Plugins on Firefox.
Please advise any way I can improve the performance.
Hello,
Is it possible to have multicolumn headers in TreeList? I have followed the example of the grid http://demos.telerik.com/kendo-ui/grid/multicolumnheaders but it doesn't work for tree list.
I tried different options but it seems form is obsolete and I don't know how to use filterMenuInit to filter date only for datetime field. It will give me getTime() error when I select date in date filter.
columns: [
{ field: "EntryDate", title: "Date", attributes: { style: "text-align:left" }, width: "200px", template: "#= kendo.toString(kendo.parseDate(EntryDate, 'yyyy-MM-ddTHH:mm:ss'), 'dd MMM yyyy hh:mm:ss tt') #" },
I tried to insert a field of date only but it is empty.
schema: {
parse: function (d) {
$.each(d, function (idx, elem) {
elem.EntryDateOnly = kendo.parseDate(elem.EntryDate, "MM/dd/yyyy");
});
return d;
},

This really should be a minor but i cannot get it to work
I need to bind to a value (StatusId) from the parent row in my DropDownList
In my clientDetailTemplate i have
var parmStatusId = new HtmlString("#: StatusId #");
@Html.TextBox("txtBox", parmStatusId) //this works just fine
@Html.DropDownList("myDropDownList", new SelectList(Model.StatusList, "Value", "Text", parmStatusId), string.Empty, new { @class = "form-control" }); //this doesnt work :-(
The source from the above is as following
<input id="txtBox" name="txtBox" type="text" value="#: StatusId #" />
<select class="form-control" name="1"><option value=""></option>
<option value="1">Ubehandlet</option>
<option value="2">Behandlet</option>
<option value="3">Lukket</option>
</select>
Am i missing the obvious??
I'm trying to add an axis to the categoryAxis to a stacked area chart http://dojo.telerik.com/@morten@munch-andersen.dk/UlEju
My data is date based but has gaps which show up when I set:
categoryAxis: {
field: "Date",
baseUnit: "day"
}
When I set baseUnit to "month" the chart loose the fine details.
I would like to add major ticks to the categoryAxis showing months and keep the fine details.
Is this possible?
It is possible to generate QRCode from server side using Kendo.Mvc.UI.QRCode?
I need to generate the QRCode for a web service that will be called from a desktop application.