Our blazing fast Grid component built with pure JavaScript


Post by bensullivan »

Hi

How do I add a column to a grid which is of type percent and has an event handler which listens on when a cell is updated?

I've tried using this but the handler isn't being called:
{ text: newColText, type: 'percent', draggable: false, lowThreshold: -1, field: newColFieldName, width: 60, align: 'center', listeners: { change: this.capacityChangeHandler} }
Thanks

Ben

Post by Maxim Gorkovsky »

{
  text: newColText,
  field: newColFieldName, 
  type: 'percent',
  draggable: false, 
  lowThreshold: -1, 
  editor : {
    type : 'number',
    listeners: { change: this.capacityChangeHandler }
  }
  width: 60, align: 'center' 
}

Post by bensullivan »

Thanks!

Post Reply