0
我有一個jqGrid的表與此colmodel的價值日期單元格的字體重量:更改基於另一個細胞
{ name: 'Readfl', formatter: GetImages, align: "center", width: "25", sortable: true, "resizable": true, search: true, edit: true },
{ name: 'Datim', formatter: 'date', formatoptions: { 'srcformat': 'Y-m-d', 'newformat': 'd.m.Y' }, width: "60", align: "center", hidden: false, "resizable": true, search: true }
如果「Readfl」是真的,我想設置粗體重量爲「DATIM 」。 問題是我已經爲'Datim'使用'formatter',並且我無法使用第二個格式化程序爲'Datim'返回粗體文本。有沒有什麼原因使用第二個格式化程序?
謝謝
,但我想設置只有在Readfl爲true的情況下才能使用粗體字體重,如果不是大膽的 – user576914
@ user576914,則必須使用javascript。附加一個事件處理程序,用於Readfl值的更改,然後以編程方式添加或刪除css類。 – MarioDS