/******************************************************************************* * IBM Confidential * * OCO Source Materials * * A and PM: PD * * (c) Copyright IBM Corp. 2014 * * The source code for this program is not published or otherwise divested of * its trade secrets, irrespective of what has been deposited with the U.S. * Copyright Office. ******************************************************************************/ define([ "dojo/_base/declare", "dojox/grid/DataGrid" ],function(declare){ var PdSelect = declare("pd.widgets.grid.cells.Select", [dojox.grid.cells.Select], { // overwrite dojo original one formatEditing: function(inDatum, inRowIndex){ this.needFormatNode(inDatum, inRowIndex); var h = [ ''); return h.join(''); } }); PdSelect.markupFactory = function(node, cell){ Cell.markupFactory(node, cell); var options = lang.trim(domAttr.get(node, "options")||""); if(options){ var o = options.split(','); if(o[0] != options){ cell.options = o; } } var values = lang.trim(domAttr.get(node, "values")||""); if(values){ var v = values.split(','); if(v[0] != values){ cell.values = v; } } }; return PdSelect; });