How to transpose rows and columns in a Kendo UI grid in MVC application?

ぃ、小莉子 提交于 2019-12-05 20:23:59

If any one will stumble upon this issues, most important you need to set td property display: block, and tr - display: inline-block. td they will fall on top of each other and tr will be next to each other.

    #grid .k-grid-header { float: left; padding: 0 !important; }
    #grid .k-grid-content { width: 1000px; height: 300px !important}
    #grid table {width: auto; white-space: nowrap; }
    #grid tr { display: inline-block; }
    #grid thead tr { display: inline; }
    #grid th, #grid td { display: block; border: 1px solid black; height: 30px; padding:15px;}

And working dojo fiddle.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!