or
I have an application based around a Kendo treeview, which displays fairly complex hierarchical data (with html passed via a kendo datasource).
This works fine in IE 8,9 and 10, and also Chrome. However, when using IE7 (or IE8 in compatibility mode), there are two issues:-
The treeview is defined as a div:-
<div id="AjaxTreeView" style="height:600px; width:490px;" ></div></div>And then initialised on the page load:-
var treeSource = new kendo.data.HierarchicalDataSource({ schema:{ model:{ hasChildren: "HasChildren", children: "Items", id:"Id" } } }); $('#AjaxTreeView').kendoTreeView({ dataSource: treeSource, template: "#= item.Text # ", loadOnDemand: false, dragAndDrop: @ViewBag.DragDrop, select: onSelect, dragstart: onNodeDragStart, drag: onNodeDragging, drop : onNodeDrop});The drag/drop option is set via the .NET MVC view bag, based upon a users permissions.
Unfortunately, IE7 is still the default browser for most of the users who will use this application, and it would be nice to enable the application to work with it, rather than have to get them all to upgrade.
Thanks

var tabQuery = $('#workTabs .k-tabstrip-items .k-item .k-link').filter(function () { return $(this).text() == tabName; });function findTab(tabs, tabName) { var i = 0; var foundTab; while (true) { var next = tabs.tabGroup.children("li").eq(i); if (next && next.length > 0) { var tabText = next[0].innerText; if (tabText == tabName) { // found foundTab = next; break; } } if (!next || (next.length == 0)) { break; } i++; } return foundTab;}