I realize there is a way to populate a Kendo Upload with initial files, however I'm trying to take this a step further.
In the app I'm building I have a drawer widget that allows the user to toggle it from visible to hidden and due to the nature of this environment the drawer is actually destroyed between toggle. It's not a problem for the rest of my data because I'm using MVVM with KnockoutJS to simply rebind the content in the drawer when shown again. The Kendo Upload is inside this drawer and I need the ability for the user to be able to toggle the drawer while the Uploader is uploading (which means the Uploader html will be removed from the DOM).
I noticed that once an upload is started the Kendo Upload actually continues to work even though the associated HTML doesn't exist anymore which sounds promising. I believe the solution is to figure out a way to associate a new Upload html with an existing Kendo Upload context.
I do realize this isn't a supported feature, but was hoping you could help point me in the right direction. I believe I have the skill necessary to tackle this, but any help would be appreciated.
Thanks.
Hello,
When using progress bar in chunk mode, is there a way to show a label for each chunk ?
Refer the Fiddle here
http://jsfiddle.net/sharanvivek/hLG98/62/
Click the Add Button and Try and select a value from the Drop down.
Notice that the change event fires correctly from the inline Dropdown. But the Drop Down on the Add Popup throws an error.
Hi,
I use Upload to select multiple files. I don't want to use web services to process the upload, so my code for Upload creation looks like this:
$('#uploader').kendoUpload({ async: { saveUrl: "notNeeded", removeUrl: "notNeeded", autoUpload: false }});When I select some files, there is a list of the selected files. Under the list there are buttons Clear and Upload.
I want to perform some action when Clear is clicked, but I don't know how to detect it.
Listening to "remove" event did not help.
Thanks for the answers,
Boris
dddd
Hello,
I have a grid with checkboxes. I am using the template feature to show a checkbox if there is a checked flag. By default Kendo recognizes the true / false to enable the checkbox. I have type: boolean in the schema.
My problem: The datasource that is provided to me, will only display 'Y' or 'N' for these boolean values.
In edit mode, how can I keep the checkboxes but use the template to recognize these new values? Clicking edit will display a textbox instead of the checkbox (If I set the scheme to "string" so that the template will recognize the "Y" & "N" values. Please help!
http://dojo.telerik.com/AdUqE
I have a grid which I define declaratively. It works well except that the column sorting interprets the columns as strings, whereas I wish for some columns to be sorting as numerical values.
Below is my grid definition.
The column I am interested in sorting in numerical order is "incident_count". I have tried specifying a type: "number" attribute to the column but it did not work.
<div id="PatrolRecords">
<div data-filterable='{ "mode": "row" }'
data-role='grid'
data-sortable='true'
data-detail-template='patrolDetailTemplate'
data-detail-init='detailInit'
data-bind='source: reportData.Patrols, events: {excelExport: excelExportHandler}'
data-pageable='{ "pageSize": 10 }'
data-toolbar='["excel"]'
data-excel='{ "fileName": "Patrols.xlsx", "allPages": "true" }'
data-columns='[
{
field: "patrol_id_plain",
title: "Patrol ID",
filterable: false,
width: 70
},
{
field: "tour_name",
title: "Tour",
filterable: { cell: { operator: "contains" } }
},
{
field: "location_name",
title: "Location",
filterable: { cell: { operator: "contains" } }
},
{
field: "client_company",
title: "Company",
filterable: { cell: { operator: "contains" } }
},
{
field: "address",
title: "Address",
template: kendo.template($("#addressTemplate").html()),
filterable: { cell: { operator: "contains" } }
},
{
field: "end_date_seconds",
title: "Date & Time",
template: kendo.template($("#dateTemplate").html()),
filterable: false
},
{
field: "patrolled_by",
title: "Patrolled By",
filterable: { cell: { operator: "contains" } }
},
{
field: "checkpoints",
title: "Checkpoints",
template: kendo.template($("#checkpointsTemplate").html()),
filterable: false,
width: 90
},
{
field: "incident_count",
title: "Incidents",
filterable: false,
type: "number",
width: 70
},
{
title: "GPS",
template: kendo.template($("#gpsTemplate").html()),
filterable: false,
width: 50
},
{
title: "",
template: kendo.template($("#viewLinkTemplate").html()),
filterable: false,
width: 60
},
]'>
</div>
</div>
I am using Kendo grid with editable popup and I want to hide/not use the row which is showing editing changes on runtime.
Reason:
I have a kendo multiselect control in popup and on saving data it adds multiple rows in db and it should show in grid as well. That's why I don't want to show that editing changes line.

<!DOCTYPE html><html><head> <title></title> <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.2.714/styles/kendo.common.min.css" /> <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.2.714/styles/kendo.default.min.css" /> <link rel="stylesheet" href="https://kendo.cdn.telerik.com/2016.2.714/styles/kendo.default.mobile.min.css" /> <script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script> <script src="https://kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script></head><body><div id="example" ng-app="KendoDemos"> <div ng-controller="MyCtrl"> <!-- generate new data and update the datasource--> <button ng-click="generate()">Generate</button> <div kendo-tree-view="treeApi" k-data-text-field="'name'" k-data-source="datasource" k-load-on-demand="false"> </div> </div></div><script> angular.module("KendoDemos", [ "kendo.directives" ]) .controller("MyCtrl", function($scope) { $scope.datasource = new kendo.data.HierarchicalDataSource({ sort: { field: "name", dir: "asc" }, data: [], schema: { model: { id: 'id', children: 'items' } } }); $scope.generate = function() { var data = [{ id: 1, name: 'name', items: [{ id: 2, name: 'name', items: [{ id: 3, name: 'name', items: [{ id: 4, name: 'name', items: [] }] }] }, { id: 5, name: 'name', items: [{ id: 6, name: 'name', items: [{ id: 7, name: 'name', items: [] }] }] }] }]; $scope.datasource.data(data); }; $scope.generate(); });</script></body></html>