You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sure, in the function initializeGrid supposing that your column name is '"color" you can set an EnumProvider with a new function to set the select values as a function of the row.
EditableGrid.prototype.initializeGrid=function(){this.setEnumProvider("color",newEnumProvider({// the function getOptionValuesForEdit is called each time the cell is edited// here we do only client-side processing, but you could use Ajax here to talk with your server// if you do, then don't forget to use Ajax in synchronous mode getOptionValuesForEdit: function(grid,column,rowIndex){if(rowIndex==4)return{"bl" : "Blue","rd": "Red","yl" : "Yellow"};elseif(rowIndex==5)return{"or" : "Orange","wh": "White","bk" : "Black"};returnnull;// or write whatever is your logic depending on the row}}));}
Can I add different options for each row cell?for example, column 1 row 1 has options A/B/C and column1 row 2 has options C/D/E? Thank you in advance.
The text was updated successfully, but these errors were encountered: