如何更改jqGrid冻结列中的样式 [英] How Can I change style in jqGrid frozen columns
本文介绍了如何更改jqGrid冻结列中的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我制作了没有jqGrid
冻结列的网格.
I made the grid without frozen columns of jqGrid
.
然后我在gridComplete
gridComplete: function() {$(this).jqGrid('setFrozenColumns');},
此后,冻结列中的样式消失了.
我在loadComplete
函数中动态更改样式,例如:
After this in frozen columns styles disappeared.
I dynamically change styles in loadComplete
function, for example:
$(this).css("background-color", "#fff0f5");
我可以解决此问题吗?
推荐答案
我解决了这个问题. 我配置了新的事件和函数,然后将整个代码移到新函数中,如下所示.工作正常.
I solved the problem. I configured new event and function, and move entire codes into the new function as following. Working well.
loadComplete: function() {
(A) .......... => move to (B)
}
$("#gridid").on('jqGridAfterGridComplete.setFrozenColumns', function(e) {
(B) .......... <= moved from (A)
});
这篇关于如何更改jqGrid冻结列中的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文