Hallo. I was trying to set auatoScroll in Sortable. All is working fine in Chrome, but won't work in IE or FF.
The markup for Sortables is below:
<
div
id
=
"mainPanel"
class
=
"@leftSize"
data-area-columns
=
"@columnsFit[0]"
>
<
div
id
=
"dashboardPanel1"
class
=
"dashboardPanel"
>
div id="addWidgetButtron1_@Model.Id" class="blankText" ng-click="addWidgetClicked(@Model.Id,1)">Drag your widgets here or <
a
data-toggle
=
"modal"
data-target
=
"#add-widget-modal"
>add a new widget</
a
></
div
>
<
div
dashId
=
"@Model.Id"
areano
=
"1"
class
=
"tabContent"
kendo-sortable
k-connect-with
=
"'#ListView_2_@Model.Id, #ListView_3_@Model.Id'"
kendo-list-view
=
"ListView_1_@Model.Id"
id
=
"ListView_1_@Model.Id"
k-options
=
"widgetsListOptions(@Model.Id,1)"
>
</
div
>
</
div
>
</
div
>
@if (Model.Layout != DashboardLayout.Column1)
{
<
div
class
=
"@centerSize"
data-area-columns
=
"@columnsFit[1]"
>
<
div
id
=
"dashboardPanel2"
class
=
"dashboardPanel"
>
<
div
id
=
"addWidgetButtron2_@Model.Id"
class
=
"blankText"
ng-click
=
"addWidgetClicked(@Model.Id,2)"
>Drag your widgets here or <
a
data-toggle
=
"modal"
data-target
=
"#add-widget-modal"
>add a new widget</
a
></
div
>
<
div
id
=
"ListView_2_@Model.Id"
dashId
=
"@Model.Id"
areano
=
"2"
class
=
"tabContent"
kendo-sortable
k-connect-with
=
"'#ListView_1_@Model.Id, #ListView_3_@Model.Id'"
kendo-list-view
=
"ListView_2_@Model.Id"
k-options
=
"widgetsListOptions(@Model.Id,2)"
>
</
div
>
</
div
>
</
div
>
}
"widgetsListOptions" is below:
function
widgetsListOptions(dashboardId, areaNo) {
return
{
dataSource:
new
kendo.data.DataSource({
//removed from this post because too long and not related.
}),
template:
function
(e) {
var
t = $templateCache.get(
'widgetTemplate'
+ e.widgetType +
'.html'
);
return
t;
},
change:
function
(e) {
$scope.widgetAreaChanged(e);
},
placeholder:
function
(element) {
return
element.clone().addClass(
"placeholder"
);
},
hint:
function
(element) {
return
element.clone().addClass(
"hint"
)
.height(element.height())
.width(element.width());
},
cursor:
"move"
,
autoScroll:
"true"
,
}
};
Chrome video: http://screencast.com/t/kxfy9RFiDt
IE(the same in FF) video: http://screencast.com/t/yz3TqRuIhGA
was used Kendo 2015.2.902, ASP .Net MVC, angular, bootstrap styles.