Hi,
I'm experimenting with the kendo Grid at the moment and have been creating something that creates a grid and sends a callback down a chain when the grid's dataBound event is fired. However, a problem that's arisen is there're multiple callbacks trying to link onto the callback event at different points in the chain, like so:
function createGrid(gridOpt) { return new Promise(function (resolve, reject) { gridOpt.dataBound = function () { resolve(); }; $$gridElement.kendoGrid(gridOpt); });}function foo() { var gridOpt = getGridOpt(); createGrid(gridOpt).then(function () { console.log('important thing 2'); });}function getGridOpt() { return { dataBound: function () { console.log('important call 1'); }, //other grid stuff };}
However, this would mean that the second dataBound assignation would override the first.
After initialisationyou can bind events through $$gridElem.data('kendoGrid').bind('dataBound', function(){});
I can't use this in this case, as the dataBound event occurs directly after initialisation.
One option would simply be to check if there is already an existent function and create a wrapper function that will call both functions. This would work, but it's not exactly best practice, and I'm sure there's a way to do it properly and I just missed something.
Is there any way to bind multiple events to the grid before initialisation?


Hi
I'm using a grid to show results from a search. Also I included the child grid for the details that shows in the detailInit event. The thing is if I change the search criteria the grid loads perfectly fine but once you click to see the details it shows the details from previous result.
I tired this and didn't work:
requestEnd: function () {
var grid = $("#grid").data("kendoGrid");
grid.refresh();
},
Also tried this:
$('#grid').data("kendoGrid").unbind('change')
With the "command" column works with unbind().click(...) but no with in de detailinit.
Thank you in advanced
Hello, I have a similar situation like here Confirmation on row selection, however I work in an AngularJS environment, so I can't work with the suggested solution directly.
$("#Grid tbody").on("mousedown", "tr", function (e) { var ok = confirm("Change selection?"); if (ok) { $("#Grid").data("kendoGrid").select(this); }});
I suppose I need to wrap it into an angular directive somehow?

Hello,
Not sure if i am posting in the right place...
Like the title says i am trying to show tooltip only on rows that exist in my array. I have a kendo grid with a checkbox, whichever checkbox the user clicks on i am storing that row in my $ctr.selectedRows[];
The example i have below, the tooltip shows up on all rows when they go back to their selection grid. I am either missing something, doing this wrong, or both.
$("#grid").kendoTooltip({
show: function(e){
$ctr.selectedRows.forEach((element) => {
this.content.parent().css("visibility", "visible");
})
},
hide:function(e){
this.content.parent().css("visibility", "hidden");
},
filter: "td:nth-child(1)", //this filter selects the first column cells
position: "center",
content: function(e){
var dataItem = $("#grid").data("kendoGrid").dataItem(e.target.closest("tr"));
var content = "Currently we have " + dataItem.UnitsInStock + " " + dataItem.ProductName +"in stock";
return content;
}
}).data("kendoTooltip");
Hello,
Like the title says i am trying to show tooltip only on rows that exist in my array. I have a kendo grid with a checkbox, whichever checkbox the user clicks on i am storing that row in my $ctr.selectedRows[];
The example i have below, the tooltip shows up on all rows when they go back to their selection grid. I am either missing something, doing this wrong, or both.
$("#grid").kendoTooltip({
show: function(e){
$ctr.selectedRows.forEach((element) => {
this.content.parent().css("visibility", "visible");
})
},
hide:function(e){
this.content.parent().css("visibility", "hidden");
},
filter: "td:nth-child(1)", //this filter selects the first column cells
position: "center",
content: function(e){
var dataItem = $("#grid").data("kendoGrid").dataItem(e.target.closest("tr"));
var content = "Currently we have " + dataItem.UnitsInStock + " " + dataItem.ProductName +"in stock";
return content;
}
}).data("kendoTooltip");
Hi,
I've updated several items within two of the column fields in my kendo grid. Of course, the data is pulled from a DB via a stored procedure in Entity Framework.
I am using the multi - true and search - true attributes for the filterable option in my grid. The new values are there; however, when I select a value, it does not filter. If I use just filterable: true without the multi feature, it does in fact filter.
I've tried to to reset using the setDataSource method and numerous other methods. Is there a way to reset or perhaps clear the old values.
Thank you

$grid.kendoGrid({ dataSource: dsPeople, scrollable: { virtual: true }, height: 600, resizable: true, selectable: "row", pageable: true, dataBound: function(e) { $("#grid").find("tr").kendoTooltip({ content: People.GetPerson(e.data.Xref, 6012, '127.0.0.1', 'netname'), width: 680, height: 120, position: "bottom", }); }, columns: [ { field: "FullName", title: "Name", groupable: false, resizable: true }, { field: "StreetAddress", title: "Address", groupable: false, resizable: true }, { field: "Sex", title: "S", groupable: true, resizable: false, width: 30 }, { field: "Race", title: "R", groupable: true, resizable: false, width: 30 }, { field: "Height", title: "Ht", groupable: false, resizable: false, width: 40 }, { field: "Weight", title: "Wt", groupable: false, resizable: false, width: 40 }, { field: "Age", groupable: true, resizable: false, width: 40 }, { field: "DOB", groupable: false, resizable: false, format: "{0:MM/dd/yyyy}", width: 90 }, { field: "Xref", title: "XREF", groupable: false, resizable: true, width: 70 } ], mobile: true});Hello!
I'm struggling with a problem when I am trying to build a chart with data, somehow the line doesn't overlap.
Of course I am using the stack function as false by default ($seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
$seriesDefaults->type($chartType)->stack(false)), but I see no difference.
Here is the data which I am using to fill the chart.
I think I miss something.
Any suggestion will help.
Thank you!
Regards,
Alexandru - Paul