1

私の列は以下のように定義されています

x.Bound(y => y.IsStudentIn).Hidden(true);
x.Bound(y => y.Student).ClientTemplate("# if(IsStudentIn== false) {# <span style = \" background-color:red; \"></span>#}#");

IsStudentIn = false の場合、Student セルを赤色にします。上記の方法を試してみましたが、うまくいきません。この特定の td に css を追加する方法

4

1 に答える 1

2

これが答えです。答えを得るためにテレリックに連絡しました

x.Bound(y => y.IsStudentIn).Hidden(true);
x.Bound(y => y.Student).ClientTemplate("# 
if(IsStudentIn== false) 
          {#"+ "<div style='background:red;'/>#:Student # </div>" + "# } 
                 else {#" + 
                        "#: Student #" + 
                     "# } #");
于 2014-07-25T17:36:28.810 に答える