Kendo ui 剑道UI网格大小调整不适用于IE,但适用于Chrome和Firefox @(Html.Kendo().Grid()) .名称(“可用区域”) .Groupable() .Sortable() .可过滤() .Scrollable() .可选(s=>s.Mode(GridSelectionMode.Multiple)) .列(列=> { columns.Bound(e=>e.CustomerVehicleID).Visible(false); columns.Bound(e=>e.AreaID).Visible(false); 列。绑定(e=>e.AreaType)。标题(“区域类型”)。宽度(100); columns.Bound(e=>e.SubType).Title(“SubType”).Width(100); columns.Bound(e=>e.AreaName).Title(“区域名称”); }) .resize可调整大小(resize=>resize.Columns(true)) .Pageable(page=>page.Enabled(false)).NoRecords(“未找到任何记录”) .Events(e=>e.Change(“availableAreaSelected”)) .DataSource(DataSource=>DataSource .Ajax() .Read(Read=>Read.Action(“GetAvailableAreas”、“Vehicle”).Data(“filterAreas”))

Kendo ui 剑道UI网格大小调整不适用于IE,但适用于Chrome和Firefox @(Html.Kendo().Grid()) .名称(“可用区域”) .Groupable() .Sortable() .可过滤() .Scrollable() .可选(s=>s.Mode(GridSelectionMode.Multiple)) .列(列=> { columns.Bound(e=>e.CustomerVehicleID).Visible(false); columns.Bound(e=>e.AreaID).Visible(false); 列。绑定(e=>e.AreaType)。标题(“区域类型”)。宽度(100); columns.Bound(e=>e.SubType).Title(“SubType”).Width(100); columns.Bound(e=>e.AreaName).Title(“区域名称”); }) .resize可调整大小(resize=>resize.Columns(true)) .Pageable(page=>page.Enabled(false)).NoRecords(“未找到任何记录”) .Events(e=>e.Change(“availableAreaSelected”)) .DataSource(DataSource=>DataSource .Ajax() .Read(Read=>Read.Action(“GetAvailableAreas”、“Vehicle”).Data(“filterAreas”)),kendo-ui,kendo-grid,kendo-asp.net-mvc,Kendo Ui,Kendo Grid,Kendo Asp.net Mvc,在剑道UI版本的IE中,网格列大小调整不起作用2016.2.607。请使用替代客户端网格对象原型的其他版本或以下变通方法: kendo.ui.Grid.fn.\u positionColumnResizeHandle=function(){ 函数游标(上下文、值){ $('th,th.k-grid-filter,th.k-link',上下文) .add(document.body) .css('光标',值); } var NS=“.kendoGrid”, 那=这个, isRtl=kendo.s

在剑道UI版本的IE中,网格列大小调整不起作用2016.2.607。请使用替代客户端网格对象原型的其他版本或以下变通方法:

kendo.ui.Grid.fn.\u positionColumnResizeHandle=function(){
函数游标(上下文、值){
$('th,th.k-grid-filter,th.k-link',上下文)
.add(document.body)
.css('光标',值);
}
var NS=“.kendoGrid”,
那=这个,
isRtl=kendo.support.isRtl(that.element),
indicatorWidth=that.options.columnResizeHandleWidth,
lockedHead=that.lockedHeader?that.lockedHeader.find(“thead:first”):$();
that.thead.add(lockedHead).on(“mousemove”+NS,“th”,函数(e){
var th=$(本);
if(th.hasClass(“k-group-cell”)| | th.hasClass(“k-hierarchy-cell”)){
返回;
}
函数getPageZoomStyle(){
var docZoom=parseFloat($(document.documentElement.css(“zoom”));
if(isNaN(docZoom)){
docZoom=1;
}
var bodyZoom=parseFloat($(document.body).css(“zoom”);
如果(isNaN(bodyZoom)){
bodyZoom=1;
}
返回docZoom*bodyZoom;
}
var clientX=e.clientX/getPageZoomStyle(),
winScrollLeft=$(窗口).scrollLeft(),
position=th.offset().left+(!isRtl?this.offsetWidth:0);
if(clientX+winScrollLeft>position-indicatorWidth&&clientX+winScrollLeft
在剑道UI版本的IE中,网格列大小调整不起作用2016.2.607。请使用替代客户端网格对象原型的其他版本或以下变通方法:

kendo.ui.Grid.fn.\u positionColumnResizeHandle=function(){
函数游标(上下文、值){
$('th,th.k-grid-filter,th.k-link',上下文)
.add(document.body)
.css('光标',值);
}
var NS=“.kendoGrid”,
那=这个,
isRtl=kendo.support.isRtl(that.element),
indicatorWidth=that.options.columnResizeHandleWidth,
lockedHead=that.lockedHeader?that.lockedHeader.find(“thead:first”):$();
that.thead.add(lockedHead).on(“mousemove”+NS,“th”,函数(e){
var th=$(本);
if(th.hasClass(“k-group-cell”)| | th.hasClass(“k-hierarchy-cell”)){
返回;
}
函数getPageZoomStyle(){
var docZoom=parseFloat($(document.documentElement.css(“zoom”));
if(isNaN(docZoom)){
docZoom=1;
}
var bodyZoom=parseFloat($(document.body).css(“zoom”);
如果(isNaN(bodyZoom)){
bodyZoom=1;
}
返回docZoom*bodyZoom;
}
var clientX=e.clientX/getPageZoomStyle(),
winScrollLeft=$(窗口).scrollLeft(),
position=th.offset().left+(!isRtl?this.offsetWidth:0);
if(clientX+winScrollLeft>position-indicatorWidth&&clientX+winScrollLeft
对@dimodi的答案稍作修改,因为在ie中,如果躯干缩放设置为1,则

  kendo.ui.Grid.fn._positionColumnResizeHandle = function() {

    function cursor(context, value) {
      $('th, th .k-grid-filter, th .k-link', context)
        .add(document.body)
        .css('cursor', value);
    }

    var NS = ".kendoGrid",
        that = this,
        isRtl = kendo.support.isRtl(that.element),
        indicatorWidth = that.options.columnResizeHandleWidth,
        lockedHead = that.lockedHeader ? that.lockedHeader.find("thead:first") : $();

    that.thead.add(lockedHead).on("mousemove" + NS, "th", function(e) {
      var th = $(this);

      if (th.hasClass("k-group-cell") || th.hasClass("k-hierarchy-cell")) {
        return;
      }

      function getPageZoomStyle() {
        var docZoom = parseFloat($(document.documentElement).css("zoom"));
        if (isNaN(docZoom)) {
          docZoom = 1;
        }
        var bodyZoom = parseFloat($(document.body).css("zoom"));
        if (isNaN(bodyZoom)) {
          bodyZoom = 1;
        }
        return docZoom * bodyZoom;
      }

      var clientX = e.clientX / getPageZoomStyle(),
          winScrollLeft = $(window).scrollLeft(),
          position = th.offset().left + (!isRtl ? this.offsetWidth : 0);

      if (clientX + winScrollLeft > position - indicatorWidth && clientX + winScrollLeft < position + indicatorWidth) {
        that._createResizeHandle(th.closest("div"), th);
      } else if (that.resizeHandle) {
        that.resizeHandle.hide();
      } else {
        cursor(that.wrapper, "");
      }
    });
  }
将返回100%,而不是1,这将阻止用户调整大小

$(document.body).css("zoom")
kendo.ui.Grid.fn.\u positionColumnResizeHandle=function(){
函数游标(上下文、值){
$('th,th.k-grid-filter,th.k-link',上下文)
.add(document.body)
.css('光标',值);
}
var NS=“.kendoGrid”,
那=这个,
isRtl=kendo.support.isRtl(that.element),
indicatorWidth=that.options.columnResizeHandleWidth,
lockedHead=that.lockedHeader?that.lockedHeader.find(“thead:first”):$();
that.thead.add(lockedHead).on(“mousemove”+NS,“th”,函数(e){
var th=$(本);
if(th.hasClass(“k-group-cell”)| | th.hasClass(“k-hierarchy-cell”)){
返回;
}
函数getPageZoomStyle(){
var docZoom=parseFloat($(document.documentElement.css(“zoom”));
if(isNaN(docZoom)){
docZoom=1;
}
var bodyZoom=parseFloat($(document.body).css(“zoom”);
如果(isNaN(bodyZoom)){
bodyZoom=1;
}
如果(bodyZoom>=100&&(browser.msie | | browser.edge)){
bodyZoom=bodyZoom/100;
}
返回docZoom*bodyZoom;
}
var clientX=e.clientX/getPageZoomStyle(),
winScrollLeft=$(窗口).scrollLeft(),
position=th.offset().left+(!isRtl?this.offsetWidth:0);
if(clientX+winScrollLeft>position-indicatorWidth&&clientX+winScrollLeft$(document.body).css("zoom")
kendo.ui.Grid.fn._positionColumnResizeHandle = function() {

function cursor(context, value) {
  $('th, th .k-grid-filter, th .k-link', context)
    .add(document.body)
    .css('cursor', value);
}

var NS = ".kendoGrid",
    that = this,
    isRtl = kendo.support.isRtl(that.element),
    indicatorWidth = that.options.columnResizeHandleWidth,
    lockedHead = that.lockedHeader ? that.lockedHeader.find("thead:first") : $();

that.thead.add(lockedHead).on("mousemove" + NS, "th", function(e) {
  var th = $(this);

  if (th.hasClass("k-group-cell") || th.hasClass("k-hierarchy-cell")) {
    return;
  }

  function getPageZoomStyle() {
    var docZoom = parseFloat($(document.documentElement).css("zoom"));
    if (isNaN(docZoom)) {
      docZoom = 1;
    }
    var bodyZoom = parseFloat($(document.body).css("zoom"));
    if (isNaN(bodyZoom)) {
      bodyZoom = 1;
    }
    else if (bodyZoom>=100 && (browser.msie || browser.edge)) { 
       bodyZoom = bodyZoom/100;   
     }
    return docZoom * bodyZoom;
  }

  var clientX = e.clientX / getPageZoomStyle(),
      winScrollLeft = $(window).scrollLeft(),
      position = th.offset().left + (!isRtl ? this.offsetWidth : 0);

  if (clientX + winScrollLeft > position - indicatorWidth && clientX + winScrollLeft < position + indicatorWidth) {
    that._createResizeHandle(th.closest("div"), th);
  } else if (that.resizeHandle) {
    that.resizeHandle.hide();
  } else {
    cursor(that.wrapper, "");
  }
});