Hi,
I have a simple list grid with following fields
myPersonalData looks like this
[
when an invalid modelName is given, modelIcon field should be hidden. (because in my case tesla doesnt have any model called v3) formatCellValue on field updateIcon doesnt work because it does not have a data source value to begin with.
So how can one change the icon shown in modelIcon based on a value of field?
I have a simple list grid with following fields
Code:
data: myPersonalData fields : [{name : "companyId", title : "Title", width:"20%",showIf:"false"}, {name : "modelName", title : "Name", width:"70%"}, {name : "modelIcon", title : "Model Icon", width:"10%", type: "icon", cellIcon: "[SKIN]/actions/edit.png" } ]
[
Code:
myPersonalData : [ {companyId: "tesla", modelName: "s3"}, /* valid tesla model. So modelIcon should appear */ {companyId: "tesla", modelName: "v3"}, /* invalid tesla model. So modelIcon should display nothing */ ]
So how can one change the icon shown in modelIcon based on a value of field?
Comment