我想要更改网格线的颜色,但不选择它。这意味着我不能使用onStyleRow事件,因为它只对'selected','odd‘或'over’事件起作用。
有什么想法吗?
thx
发布于 2010-12-21 17:34:15
我找到了一个updateRowStyles(idxRow)函数,但不知道如何使用它(如何传递syles等)。我不确定这是否能解决我的问题
发布于 2013-04-03 17:12:46
你不能这样改变你的风格:
var layout = [
{ field: 'denumire', name: 'Denumire', width: '200px', height: '25px', styles: "color:red;" },
{ field: 'valoare', name: 'Valoare', width: '252px', styles: "color:red;"}];或在布局网格中使用格式化程序
var layout = [
{ field: 'denumire', name: 'Denumire', width: '200px', height: '25px', formatter: function (value, rowIndex) {
return "<div style='height:110px;text-overflow:ellipsis;color:red;'>"+value+"</div>"
} },
{ field: 'valoare', name: 'Valoare', width: '252px',
formatter: function (value, rowIndex) {
return "<div style='height:110px;text-overflow:ellipsis;color:red;'>"+value+"</div>"
}}];https://stackoverflow.com/questions/4497716
复制相似问题