code: function(columnName, value) {
          var column = this.columnModel.getColumnModel(columnName);
          var maxLength = snippet.pick(column, 'editOptions', 'maxLength');
  
          if (maxLength > 0 && value.length > maxLength) {
              return value.substring(0, maxLength);
          }
  
          return value;
      }
docs: Check if given column has 'maxLength' property and returns the substring limited by maxLength.
  @param {string} columnName - columnName
  @param {string} value - value
  @returns {string}
  @private