I am creating a datepicker range directive and would like to change the style in the range between the dates it contains in my model, for example between the date model.startDate and model.endDate I want to put a gray background, for this I am using the
month: {
content: '<div class = \' # = isBetweenDates(data)? "k-state-hover": "" # \ '> # = data.value # </ div>';
}.
My problem is the function .. it only fills my function when I create in the global object .. window.isBetweenDates = function (data) {....
In this case, if I use two directives .. the second will overlap the first one because it will overwrite the method, since it is in the global scope ..
Is there any way I can link that function with each scope directive that was created, so as not to impact each other? If there is more than one
I tried to make some forms, for example use $ compile and move to content but I can only pass string.
Thank You!!

I have a grid which initially displays all data for my current remote query. When a user clicks the 'Edit' button, the grid should be editable. One of the columns will be a Kendo Dropdownlist displaying the possible selections. I have attempted to recreate this below:
http://dojo.telerik.com/AJaKe
I could not fully create this scenario below as the dropdown is becoming locked upon clicking Edit.
My grid should have inline editing, a remote datasource, a Kendo Dropdownlist (upon clicking edit), have a remote datasource on the Kendo Dropdownlist and should have the ability to add a new row with the above requirements.
I need help modifying the above example to create the scenario I described.

Hi, I have implemented a second custom "column filter" to hide columns that start with a certain string based on user selection -
Columns: Aaron, Chris, Ashley, Ryan
My selector has options 'A', 'C', 'R' with checkboxes, when one is unchecked, it will hide all cols that start with 'A', for example.
My issue is in the performance of this method when the grid has many (50+) columns, taking multiple seconds to fulfill this loop:
var grid = $("grid").data().kendoGrid;
var columns - grid.columns
$.each(columns, function(i, el){

Hi,
is there a sample or documentation how the Virtualization support without a value mapper works?
robert
Hello,
I have been unable to locate an example of how I would go about using kendo's data binding to bind a checkbox with a numeric column on my model, where 0 = unchecked, and 1 = checked.
Thanks

Hey guys,
I'm trying to apply a "dropdown" option for a few different columns in my table. Using the standard "string" and "number" operators if fine, but I want to apply specific dataset options to each of my particular dropdown filters. Examples similar to ["yes", "no"], or days of the week are the simple type of selections I want in the dropdown to then be applied as the filter for the column.
Using angular.
------------------------------------------------------------------
$scope.GridOptions = {
dataSource: new kendo.data.DataSource({
------------------------------------------------------------------
Above -how my grid is being created for reference purposes.
My grid has a {schema: {model: fields: {...}}} section, currently specifying the "type" of each column.
As well as a {filterable: {operators: {}}] area where I'm specifying the search options/order.
And finally the "columns" area where the specifics of each field are being specified.
I haven't been able to find an angular reference with a custom dropdown filter being used - I've only seen JQuery/javascript.

I have a Kendo grid that is created once the Ajax success event is triggered returning JSON data. The grid displays and works as I would expect. I have two buttons, one for Export to Excel and the other PDF - Excel works fine. PDF just grays out the grid and displays an empty progress bar that is never filled. The PDF is never generated. I have stripped all .js includes (and have also used the kendo demo versions of the .js files) and additional .css includes and yet the problem remains. It won't work in IE (11) nor in Chrome.
<link href="kendo.common.min.css" rel="stylesheet"/><link href="kendo.default.min.css" rel="stylesheet"/><script src="jquery-1.11.3.js"></script><script src="kendo.all.min.js"></script><script src="jszip.min.js"></script><script src="pako_deflate.min.js"></script><div id="grid"></div>​
... $.ajax({ url: <web service url>, type: 'POST', dataType: 'json', data: {<parameters>}, success: function (_data) { var oTable = $("#grid").kendoGrid({ toolbar: ["pdf", "excel"], pdf: { fileName: "Kendo UI Grid Export.pdf" }, excel: { fileName: "Kendo UI Grid Export.xlsx" }, dataSource: { data: _data, schema: { model: { fields: { ... } } }, }, selectable: "single", sortable: true, filterable: true, pageable: false, scrollable: true, height: 500, columns: [ ... ] }); ...
Hello,
We have a wide grid with horizontal scrolling, with 2 frozen columns. It is very wide (over 20 columns), so the horizontal scrolling is always needed.
We are using the Filter Row option to allow the user to filter. Works well, but if the user tabs between the filter fields, an issue arises. If the user tabs to a hidden field (hidden as in having to scroll to see it), then the header will scroll to accomodate, but the body will not. Likewise, if the user is scrolled all the way to the right and tabs out of the last frozen column, the scrolling again gets out of sync.
See the following Dojo example to experience the issue yourself.
http://dojo.telerik.com/iNONA/2
If anyone has any clue as to how to fix this issue, I'd appreciate it very much!
Thanks!
Hi!
As far as I have understood, the toggle state of a toggle button is set via its "k-state-active" css class. There are some situations where I want to select or unselect a toggle button dynamically by adding or removing the "k-state-active" css class. On the other hand if I want to know the toggle state of a toggle button, I am checking if the link has the "k-state-active" css class.
The event handler looks like this:
function onToggle(e) {
let button = $(e.target);
let selected = button.hasClass("k-state-active");
if (selected === false && condition) {
button.addClass("k-state-active");
}
}
For some reasons I don't understand, the boolean value of "selected" sometimes differs from the actual rendered state of the toggle button. It seems like the toggle button has some other internal state, or maybe I am accessing the toggle button just not the right way.
Best regards,
Kaan
I have a grid that has subHeaders and subColumns. Ideally when I select/deselect the parent column, it should display/hide the parent columns and headers along with its subHeaders and subColumns. However it is not working fine.
After a deeper investigation, I find that the index of the columns are messed up in this situation, which looks like 0,1,4,2,3 . And even worse, if there are dynamic columns, as we use k-rebind, the indexes of the columns are not unique any more.
