<div data-role="grid" id="id"data-groupable="true" data-group="function(e) {if (e.groups.length > 1) {console.log('ciao'); e.groups[0] = e.groups.pop(); }}"data-columns="[ { 'field': 'name', 'width': 270 }, { 'field': 'age' }, ] </div>Error:
how do I fix it?
HI
I have a question about widget object comparison :
There have FirstButton and SecondButton in the view those share the same event handler (FirstButton_Click),
How can I tell the e.sender is equals to which ?
Is the code correct or not ? if not how to do ?
View
@(Html.Kendo().Button()
.Name("FirstButton")
.Content("First")
.Events(events => events.Click("class1.FirstButton_Click"))
.HtmlAttributes(new { @type = "button" }))
@(Html.Kendo().Button()
.Name("SecondButton")
.Content("Second")
.Events(events => events.Click("class1.FirstButton_Click"))
.HtmlAttributes(new { @type = "button" }))
Javascript
FirstButton_Click: function(e)
{
// Click
var FirstButton = $("#FirstButton").data("kendoButton"), SecondButton = $("#SecondButton").data("kendoButton");
var FirstButton2 = $("#FirstButton").data("kendoButton");
//
if (e.sender == FirstButton)
alert("The sender is FirstButton");
if (e.sender == SecondButton)
alert("The sender is SecondButton");
Best regards
Chris


I'm trying to load a large dataset (~2000 rows) on kendo ui grid - jquery. But it's creating a performance bottleneck and very jerky screen on Google chrome (performance profiling says: Forced reflow is a likely performance bottleneck). But same code/ui runs flowlessly on firefox. I've added a sample dojo.
dojo: http://dojo.telerik.com/eleNEQ/3
In this dojo please hover on the animated button after dataload.
Test criteria:
Google chrome: Version 61.0.3163.100 (Official Build) (64-bit)
Firefox: 56.0 (32-bit)
I'm wondering whether this issue can be solved by telerik. Thanks in advance.

I am using the Grid with a Filter row and I am trying to specify the column input width, but it does not work when using the Boostrap v4 theme.
Please see the following dojos where I added an inputWidth to the OrderID column.
Boostrap v3 theme (works): http://dojo.telerik.com/AmABaV
Boostrap v4 theme (does not work): http://dojo.telerik.com/AsiGi

The way our setup works updating one event might cause other events to "shift" so the server sends back all Scheduler Events that were modified. I tried just returning all of those as JSON but the scheduler doesn't seem to pick up on them.
Is there a way to sync whatever the server returned with the datasource for the scheduler? or do I just need to issue a read()
Looking at
_accept: function(result) inside kendo.data.js
I can see that it just uses the original batch of models and the index order to do updates so it can't really handle more items coming back then were sent
This is Kendo ASP MVC though the question is about DataSource.
Our code has two dropdowns. When the `onchange()` for the first fires it calls `$("#classDropDown").data("kendoDropDownList").dataSource.read();` to force the second one to update.
<%: Html.Kendo().DropDownList().Name("speciesDropDown") .DataTextField("Text") .DataValueField("Value") .DataSource(source => { source.Read(read => { read.Action("GetNLSSpecies", "RefData").Data("noFilters"); }); }) .HtmlAttributes(new { style = "width: 50%" }) .Filter(FilterType.Contains)%>...<%: Html.Kendo().DropDownList().Name("classDropDown") .DataTextField("Text") .DataValueField("Value") .DataSource(source => { source.Read(read => { read.Action("GetClassData", "RefData").Data("mergeData()"); }); }) .HtmlAttributes(new { style = "width: 50%" }) .Filter(FilterType.Contains)%>$('#speciesDropDown').on('change', function (event) { ... $("#classDropDown").data("kendoDropDownList").dataSource.read();}.Data("mergeData('getSpeciesDropdownObj','getShownOrRequired(\"OtherClass\")')")
I have dropdown value and if there is value X, I want the next cell to be not editable or even better if hidden. Like shown in picture y.png.
If there is value Y, i want the next cell to be editable. Like shown in picture x.png.
How can I achieve this?
