Hi,
I am using smatclient snapshot version SmartClient_SC_SNAPSHOT-2010-11-08 and I am trying to change the cellIcon when the user double clicks on the cell, but I tried everything (but maybe the wrong things :-)). I just don't manage to get it working, here is the snip of the code:
Can someone help me here?
Thanks,
Jeronimo
I am using smatclient snapshot version SmartClient_SC_SNAPSHOT-2010-11-08 and I am trying to change the cellIcon when the user double clicks on the cell, but I tried everything (but maybe the wrong things :-)). I just don't manage to get it working, here is the snip of the code:
Code:
isc.ListGrid.create({ ID:"nodePortGrid"+record.id, dataSource: node_port, initialCriteria: {fk_node_card_id : record.id}, autoFetchData: true, canEdit:false, autoDraw:false, fields:[ {name:"measure", title:"Measure", type:"icon", cellIcon:"icons/time.png", autoFitWidth:true}, {name:"audit", title:"", type: "icon", cellIcon:"icons/audit.png", autoFitWidth:true}, {name:"dlm_enabled", title:"DLM", type:"image", imageURLPrefix:"icons/", imageURLSuffix:".png", valueIcons:{'false':'dlmfalse','true':'dlmtrue'}, autoFitWidth:true}, {name:"locked", title:"Lock", type:"image", imageURLPrefix:"icons/", imageURLSuffix:".png", valueIcons:{'true':'locktrue'}, autoFitWidth:true}, {name:"customer_id", title:"Customer ID", autoFitWidth:true}, {name:"port_name", title:"Port Name", autoFitWidth:true}, {name:"service_profile", title:"Service Profile", autoFitWidth:true}, {name:"spectrum_profile", title:"Spectrum Profile", autoFitWidth:true}, {name:"aal5_encapsulation_detection", title: "AAL5 Encapsulation", autoFitWidth:true}, {name:"modem_type", title:"Modem", autoFitWidth:true}, {name:"fk_isp_id", title:"ISP", type:"select", displayField:"abbrevation", optionDataSource:"isp", valueField:"id", autoFitWidth:true}, {name:"vci", title:"VCI", autoFitWidth:true}, {name:"comment", title:"History",autoFitWidth:true, canExpand:true} ], cellDoubleClick: function(record, rowNum, colNum) { if (this.getField(colNum).name == "audit") { record[this.recordBaseStyleProperty]="myGridCell"; this.getField(colNum).cellIcon("icons/sound.png"); isc.say(this.getField(colNum).cellIcon); this.refreshCell(rowNum,colNum); isc.XMLTools.loadWSDL("http://localhost/Node/NodeSOAPImpl?wsdl", function(service) {run(service, record, rowNum);},null, true); } if (this.getField(colNum).name == "measure") { isc.XMLTools.loadWSDL("http://localhost:9090/NodeNetwork/NodeNetworkSOAPImpl?wsdl", function(service) {measure(service, record, rowNum);},null, true) } } });
Thanks,
Jeronimo
Comment