I'm using Jasmine for BDD style testing. I'm testing that selecting a row in a kendoGrid will call my callback function. To test this I'm creating an element on the fly using
when I attach a kendo grid to a div under that dynamically created div, it mostly seems to work except for selection. I can populate the grid with data and see the correctly generated html in the debugger. However, if I do :
element = $('<div></div>');
when I attach a kendo grid to a div under that dynamically created div, it mostly seems to work except for selection. I can populate the grid with data and see the correctly generated html in the debugger. However, if I do :
var firstRow = kendoGrid.tbody.find(">tr:first");
kendoGrid.select(firstRow);
Then my workspaceGrid.Select callback is not called, and the grid.select() returns no elements.
Is there a better way to host the grid when I'm doing unit testing?
I find the syntax for selecting a particular row very awkward. I would be much easier to do
kendoGrid.select(0) to get the first row.