EXT JS 根据列表的行记录的某一单元格的值确定其他单元格的值

……
{header:"设备ID", width: 15, dataIndex: 'devId', sortable: false,
						renderer : function(value){
							if(value <= 32){
								return "<span>[AC] " + value + "<span>";
							}
							else
							{
								return "<span>[AP] " + value + "<span>";
							}
						}
					},
					{header:"端口编号", width: 15, dataIndex: 'ifId', sortable: false, 
						renderer: function(value, metadata, record, rowIndex, colIndex, store){
							var obj = record.data;
							var devId = obj.devId;
							if(devId < 32){
								return "<span>LAN" + (parseInt(value)+1) + "<span>";
							}
							else
							{
								return "<span>VAP" + value + "<span>";
							}
						}
……					}

你可能感兴趣的:(java,ext)