kendo ui ajax请求,Kendo UI Ajax请求

  • Post author:
  • Post category:其他


您可以创建相对股利和插入有您的网格和装载机的包装:

@(Html.Kendo().Grid()….)

CSS:

.grid-wrapper {

position: relative;

}

.loading-wrapper {

display: none;

position: absolute;

width: 100%;

height: 100%;

z-index: 1000;

}

.loading {

position: absolute;

height: 4em;

top: 50%;

}

添加到imageActionLink在htmlAttributes对象命名为 “编辑”(例如)类,并写入点击事件处理程序:

$(document).on(‘click’, ‘.edit’, function (e) {

$(‘.loading-wrapper’).show();

$.ajax({

// ajax opts

success: function(response) {

// insert your edit view received by ajax in right place

$(‘.loading-wrapper’).hide();

}

})

});