Kendo Grid - its own Loading indicator

假装没事ソ 提交于 2019-12-04 01:44:56

Simple, just hide it with CSS. Your selector will need to be more specific than the built-in Kendo classes. You can use the Grid's ID for that.

#grid .k-loading-image {
    background-image: none;
}

If you want to remove the loading mask you can also accomplish that with CSS.

#grid .k-loading-color {
    opacity: 0;
}

I had two grids named "grid1" and "grid2" - each was enclosed within a div; named "grid1panel" and "grid2panel". To remove the spinner/wait cursor I added an override for the the grid panels ".k-loading-image" and ".k-loading-color"; this removed it just for these specific grids.

Sample CSS

/* DISABLE KENDO SPINNER/WAIT CURSOR */
.grid1panel .k-loading-image {
    background-image: none;
}
.grid1panel .k-loading-color {
    opacity: 0;
}
.grid2panel .k-loading-image {
    background-image: none;
}
.grid2panel .k-loading-color {
    opacity: 0;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!