I've got a rather complicated grid, where I am using minScreenWidth to show/hide some columns based on screen width, but I am also manually showing/hiding other columns (grid.showColumn/grid.hideColumn) that have special uses. For example, I have a "mobile" column that is only visible on bootstrap xs - and all other columns are hidden on bootstrap xs (hidden using minScreenWidth). This "mobile" column is a template column and shows the data in that one cell in a stacked format, one line in the stack for each "normal" column, where is shows the field name: field value. Ideally, Kendo would have a maxScreenWidth, but I digress. The second column that can't be managed with minScreenWidth is a shortened version of the CardAccount column where I only show the last 4 digits if the screen size is bootstrap md (all other screen widths it is hidden).
Everything works great on Chrome and IE, but on Firefox, the grid is messed up (see screenshots for example). It appears as if there is enough room for the hidden columns but that space is still visible. If, in the console, I do a grid.refresh, the empty space collapses and the columns line up with their headers. I've tried to put in a grid.refresh in the grid dataBound (even within a setTimeout - started at 0 all the way up to 1000) and still the same. No luck.
I am hesitant to create a sample app because it is rather complex and if you have a straight-forward solution, my efforts to create a sample would be in vain.
I am using 2015.2.805

01.function onSelectRoom(e) {02. 03. var roomObjId = $("#ddlObjects").data("kendoDropDownList").dataItem();04. var operator1 = "eq";05. var logic1 = "or";06. var scheduler = $("#scheduler").data("kendoScheduler");07. 08. if (roomObjId.ObjectID < 1) {09. //Clear the filtering10. }11. var selectedObj = [roomObjId.ObjectID];12. 13. var filter = {14. logic: logic1,15. filters: $.map(selectedObj, function (value) {16. return {17. operator: operator1,18. field: "Id",19. value: value20. };21. })22. };23. 24. 25. 26. scheduler.dataSource.filter(filter);27.}The code above works for filtering, however i need to clear the filtering if the objectID is < 0. Is there any method such as
scheduler.dataSource.clearFilter(); ?
Thanks.
I have an app that has several listviews tied to remote data sources. I have tied three buttons on the main form to each display a different listview and allow the user to select an item on the list, which is populated on the main form. All three Listviews have the same code as listed below. They display the code for the selected item in a field on the form. That doesn't seem to matter. The code blow includes a section to check if there is no data item selected. This is where the problem lies.
$(document).ready(function () {
$("#proclist").kendoListView({
change: function () {
var item = this.dataItem(".k-state-selected");
if (item === undefined) {
alert("nothing selected");
return;
}
window.encounterView.setProcCode(this.dataItem(".k-state-selected").code);
}
}
When you select something on the listview the change code is fired. The third time you open a different listview and click on an item, item is always returned as undefined.
It doesn't matter what order you click on the buttons, it always fails on the third time. Is this a bug or just a limitation of the simulation environment?
Also 2 of these lists have almost 9000 items in them. I've tried limiting them to 500 items but that fails in the same way. Is there a limitation I should be aware of?
Using 2015.2.827 I have a stockchart that gets data ​from datasource with schema date: { type: "date" }, reportCount: { type: "number" }.
I would like to set the navigator.select.from and navigator.select.to based on datasource values. Specifically, I would like to set navigator.select.from to "datasource.data.max.addDays(-14)" and navigator.select.to to "datasource.data.max".
I would like to only have to read the datasource once.
Is this possible?