Hi all,
I need to make columnCssClass dynamic by a function with 2 parameters:
So, Can I get 2 parameters above?
Thanks,
Thanks for your reply,
I want a function like my screenshot below:
$("#grid").igGrid({ dataSource: data2, primaryKey: "ID", autoCommit : true, autoGenerateColumns: true, renderCheckboxes : true, columns: [ { key: "ID", headerText: "ID", width: "20px", dataType: "string", columnCssClass: setBackgroudIro1(record, columnsetting) } ], features:[ { name: "Updating", enableAddRow: true, editMode: "row", enableDeleteRow: true } ] }); function setBackgroudIro1(item, column) { if (item.name == null) { if ((column.dataType == null) || (column.dataType != "number")) { switch (column.key) { case 'key1': return 'cssclassA'; case 'key2': return 'cssclassB'; } } } }
Can I do it?
Hello Quoc Tu,
In order to better understand your question, could you share with us a screen shot which shows what you want to do?