Hello,
I'm using on Kendo ASP.Net MVC 2015.1.429.
On Kendo Scheduler, when adding/editing an event if use Recurrence feature, End field always show date with format: mm/dd/yyyy. (using Chrome browser latest version)
Is there any way or workaround to change date format to: dd/mm/yyyy?
Thanks,Hi
Using the kendo-combo-box as show below, how can I specify a sort order for the generated select box ?
Thanks!
<select id="Team_Select" class="form-control" kendo-combo-box
k-placeholder="'Select team'"
k-data-text-field="'Description'"
k-data-value-field="'ObjectNumber'"
k-filter="'contains'"
k-auto-bind="false"
k-min-length="3"
k-data-source="Persons"
ng-model="Filters.Team_Select">
</select>
I have some links to anchors inside a view. When a link is clicked I just want to scroll vertically to the anchor (not switch views).
For example:
<a href="#question1">Question 1</a>
<a name="question1">blah blah</a>
Is this possible in Kendo Mobile, or do I have to turn each anchor into a view?
Thanks
<script id="HuddleGroupTemplate" type="text/x-kendo-template"> <select id="#UserName" class="multiselect" multiple="multiple" name="UserName"> # for (var i = 0; i < data.length; i++) { # <option value="#=data[i].UserName#" id="#=data[i].UserID#" selected="">#=data[i].FirstName# #=data[i].FirstName#</option> # } # </select></script>$(document).ready(function() { var Person = [ { UserName : "jeremy@gmail.com", FirstName: "Jeremy", LastName: "Mills", UserID: "1", selected: true }, { UserName : "jgop@yahoo.com", FirstName: "Josh", LastName: "Howard", UserID: "2", selected: false}, { UserName : "johnny@gmail.com", FirstName: "John", LastName: "Doe", UserID: "3", selected: false } ]; var HuddleGroupTemplate = kendo.template($("#HuddleGroupTemplate").html()); var result = HuddleGroupTemplate(Person); $("#UserName").html(result); });<script id="HuddleGroupTemplate" type="text/x-kendo-template"> <select id="#UserName" class="multiselect" multiple="multiple" name="UserName"> # for (var i = 0; i < data.length; i++) { # <option value="data[i].UserName" id="data[i].UserID" selected="">data[i].FirstName data[i].FirstName</option> # } # </select></script>I have implemented the Kendo UI DropDownList with virtualization and server filtering. I have set the pageSize to 250 (this is the optimal size for my application).
When the DropDownList is initialized the first read uses the correct pageSize of 250, but when I scroll so that the next page should be called, the pageSize retrieved from options.data.pageSize and the page options.data.page does not have the correct value (the pageSize is 46/47 and the page is 6/7, but they should be 250 and 2). As I have 2000+ items in my DropDownList, this leads to a lot of requests. If the pageSize were kept to 250 there would be 8 requests for 2000 items, but as it is changed to 46 there are 44 requests to retrieve all items. How can I configure the DropDownList to use the pageSize that I have specified. I have no idea where the new page size and page values come from, but they are wrong in my opinion.
I also stumbled upon another problem. As I don't have a preselected value for my DropDownList, I don't need the valueMapper function, but there is no need to work around this, so I had to hardcode the index to 0. I tried to pass no value to the options.success(); function, but this resulted in breaking the dropdown. Is there a way to skip this or to pass some other value? I don't want to have a preselected value when the dropdown is initialized (and with this HACK) the first item is selected.
I have made an example of whantI have implemented the Kendo UI DropDownList with virtualization and server filtering. I have set the pageSize to 250 (this is the optimal size for my application).
When the DropDownList is initialized the first read uses the correct pageSize of 250, but when I scroll so that the next page should be called, the pageSize retrieved from options.data.pageSize and the page options.data.page does not have the correct value (the pageSize is 46/47 and the page is 6/7, but they should be 250 and 2). As I have 2000+ items in my DropDownList, this leads to a lot of requests. If the pageSize were kept to 250 there would be 8 requests for 2000 items, but as it is changed to 46 there are 44 requests to retrieve all items. How can I configure the DropDownList to use the pageSize that I have specified. I have no idea where the new page size and page values come from, but they are wrong in my opinion.
I also stumbled upon another problem. As I don't have a preselected value for my DropDownList, I don't need the valueMapper function, but there is no need to work around this, so I had to hardcode the index to 0. I tried to pass no value to the options.success(); function, but this resulted in breaking the dropdown. Is there a way to skip this or to pass some other value? I don't want to have a preselected value when the dropdown is initialized (and with this HACK) the first item is selected.
I have made an example of what I am talking about: I have implemented the Kendo UI DropDownList with virtualization and server filtering. I have set the pageSize to 250 (this is the optimal size for my application).
When the DropDownList is initialized the first read uses the correct pageSize of 250, but when I scroll so that the next page should be called, the pageSize retrieved from options.data.pageSize and the page options.data.page does not have the correct value (the pageSize is 46/47 and the page is 6/7, but they should be 250 and 2). As I have 2000+ items in my DropDownList, this leads to a lot of requests. If the pageSize were kept to 250 there would be 8 requests for 2000 items, but as it is changed to 46 there are 44 requests to retrieve all items. How can I configure the DropDownList to use the pageSize that I have specified. I have no idea where the new page size and page values come from, but they are wrong in my opinion.
I also stumbled upon another problem. As I don't have a preselected value for my DropDownList, I don't need the valueMapper function, but there is no need to work around this, so I had to hardcode the index to 0. I tried to pass no value to the options.success(); function, but this resulted in breaking the dropdown. Is there a way to skip this or to pass some other value? I don't want to have a preselected value when the dropdown is initialized (and with this HACK) the first item is selected.
I have made an example of what I am talking about: http://dojo.telerik.com/@ivanst.stoyanov/eZoSu/3
Reading the documentation I have noticed that the Preview of some of your examples do not work:
http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-virtual
http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-virtual.itemHeight
http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#configuration-virtual.valueMapper
Ivan
This will probably end up being quite an easy question to answer, but man is it giving me a hard time.
So I have a Kendo-AngularJS grid set up and working beautifully when I include kendo.all.min.js. However, we are only going to be using a few components, so I would rather not include the ~2mb all.min script. So I am trying to piece together the individual files I need. (By the way, one of those download generators that jQuery UI, Bootstrap and others have would be awesome, where you could simply check boxes for what you need and it generates only the scripts and resources you need and concatenates them).
First, here is my Grid setup object so you can see which features I am using:
$scope.gridOptions = {
dataSource: {
data: $scope.accountTags,
schema: {
model: {
fields: {
nickname: { type: 'string' },
tagId: { type: 'string' },
licState: { type: 'string' },
licPlate: { type: 'string' },
vehicleYear: { type: 'string' },
vehicleMake: { type: 'string' },
vehicleModel: { type: 'string' },
vehicleColor: { type: 'string' },
tagStatusDesc: { type: 'string' }
}
}
},
pageSize: 20
},
sortable: true,
selectable: true,
pageable: {
refresh: true,
pageSizes: true
},
columns: [{ title: 'Nickname', field: 'nickname' },
{ title: 'Tag #', field: 'tagId' },
{ title: 'State', field: 'licState' },
{ title: 'Lic. Plate', field: 'licPlate' },
{ title: 'Year', field: 'vehicleYear' },
{ title: 'Make', field: 'vehicleMake' },
{ title: 'Model', field: 'vehicleModel' },
{ title: 'Color', field: 'vehicleColor' },
{ title: 'Tag Status', template: kendo.template(jQuery('#active-template').html()) },
{ template: kendo.template(jQuery('#edit-link-template').html()) }]
};
};
Here are the files I am already including, in the order I am including them:
kendo.core
kendo.angular
kendo.data
kendo.grid
kendo.selectable
kendo.sortable
kendo.reorderable
kendo.dataviz
kendo.pager
kendo.common.css
kendo.default.css
The last two JS files included (dataviz and pager) were largely added out of desperation, as I couldn't find much else to try.
But I am obviously missing something else, since the Grid works fine with kendo.all.min.js, but not with this mix of files. Any help would be appreciated!
Hi,
May i know how to add day template via MVVM? I tried but i encounter: Uncaught Error: The month binding is not supported by the Calendar widget"
<div data-role="calendar"
data-bind="value: selectedDate, events: { navigate: onChange },month:
{content:$('#cell-template').html()}"></div>
<script id="cell-template" type="text/x-kendo-template">
<div>
#= data.value #
</div>
</script>
Please advise.
regards,
ch
I am trying to use a grid with a RESTful web service as a datasource. The read operation is working fine but the create operation is issuing a post with an empty body where I am expecting a JSON object. Any suggestion on debugging this or what I am doping wrong. Code below:
$(document).ready(function()
{
var gridDataSource = new kendo.data.DataSource({
transport: {
read: {
url: "/saml-sp/secure-api/ecs/AccountDataService/v1/AccountData/19610505/OrganizationalUnit",
type: "get",
dataType: 'json'
},
create: {
url: "/saml-sp/secure-api/ecs/AccountDataService/v1/AccountData/19610505/OrganizationalUnit",
type: "post",
contentType : 'application/json',
dataType: 'json'
},
update: {
url: "/saml-sp/secure-api/ecs/AccountDataService/v1/AccountData/19610505/OrganizationalUnit",
type: "put",
contentType : 'application/json',
dataType: 'json'
},
parameterMap : function(options, operation) {
if (operation !== "read" && options.models) {
return kendo.stringify(options.models);
}
}
},
schema: {
model: {
id: "id",
fields: {
id: {
editable : false,
nullable : false
},
clientName: {type: "string"},
friendlyClientName: {type: "string"},
name: {type: "string"},
status: {type: "string"}
}
}
}
});
$("#ouGrid").kendoGrid({
dataSource: gridDataSource,
toolbar: ["create"],
messages: {
commands: {
create: "Add Organizational Unit"
}
},
editable: "popup",
columns: [
{ title: "Client", field: "clientName", width: 100 },
{ title: "Friendly Name", field: "friendlyClientName", width: 100 },
{ title: "Organizational Unit", field: "name", width: 100 },
{ title: "Status", field: "status", width: 100 }
],
groupable: true,
selectable: "multiple row",
sortable: true,
filterable: true,
allowCopy: true,
height: 450,
});
});
Steps:
1. Click on the "Filter" button.
2. Select any type of filter.
3. Enter value and click on the "Filter" button.
4. When result displayed open filter again, delete value and click on the "Filter" button.
5. Observe results.
Actual result: Result from step 3 still displayed.
Expected result: Results should be cleared.
Screen recording: http://we.tl/ZQUE9bw7BP
