Celebio/SlickGrid

add dataItemColumnSetter per column

ryrych opened this issue · 0 comments

One of my editors is bootstrap modal for longer content. When you edit one field, it is OK that it opens. But using clipboard command (paste) it tries to open modal for each of the pasted descriptions.

if dataItemColumnValueSetter is defined it is used for all columns. It could be used for for columns that have this custom setter like this:

    function setDataItemValueForColumn(item, columnDef, value) {
      if (columnDef.dataItemColumnValueSetter) {
          columnDef.dataItemColumnValueSetter(item, columnDef, value);
      else
        defaultDataItemColumnValueSetter(item, columnDef, value);
      }