0

I just want to delete the value of an cell depending on its content. If the content is 0 i want to delete it when one tries to edit it. So i choose the beforeEditCell event and tried to delete the content in that way.

beforeEditCell:function(rowid, cellname, value, iRow, iCol){
                            if(value == 0) value = '';
                       },

I tested it with alert so the event fires the alert, but I have no idea how to delete the old content.

Echilon
  • 10,064
  • 33
  • 131
  • 217
andara
  • 33
  • 5

1 Answers1

0

link 1

link 2

Example from http://www.trirand.com/blog/?page_id=393/help/set-cell-value-to-empty/

(they're changing value to empty)

setCell("10″, "tax", '', {color:'red','text-align':'center'}',{title:'Sales Tax'}))
Community
  • 1
  • 1
elrado
  • 4,960
  • 1
  • 17
  • 15