|
@@ -398,6 +398,7 @@
|
|
|
|
|
|
|
|
$pluginElement.find("thead>tr th").each(function (i) {
|
|
$pluginElement.find("thead>tr th").each(function (i) {
|
|
|
var originalTh = $(this);
|
|
var originalTh = $(this);
|
|
|
|
|
+ originalTh.removeAttr("data-bind");
|
|
|
clonedTable.find("thead>tr th:eq(" + i + ")").width(originalTh.width()).css("background-color", "#FFFFFF").click(function () {
|
|
clonedTable.find("thead>tr th:eq(" + i + ")").width(originalTh.width()).css("background-color", "#FFFFFF").click(function () {
|
|
|
originalTh.click();
|
|
originalTh.click();
|
|
|
clonedTable.find("thead>tr th").attr("class", "sorting");
|
|
clonedTable.find("thead>tr th").attr("class", "sorting");
|
|
@@ -445,6 +446,10 @@
|
|
|
scrollTimeout = window.setTimeout(throttledHeaderPadding, 200);
|
|
scrollTimeout = window.setTimeout(throttledHeaderPadding, 200);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ $pluginElement.bind('headerpadding', function () {
|
|
|
|
|
+ scrollTimeout = window.setTimeout(throttledHeaderPadding, 200);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
clonedTableVisibleContainer.scrollLeft($pluginElement.parent().scrollLeft());
|
|
clonedTableVisibleContainer.scrollLeft($pluginElement.parent().scrollLeft());
|
|
|
|
|
|
|
|
$pluginElement.parent().data("w", clonedTableVisibleContainer.width());
|
|
$pluginElement.parent().data("w", clonedTableVisibleContainer.width());
|