I have a grid that is bound to a knockout view model. When the editCellEnded event fires, I have some code to make changes to the view model, but if there is an error, I want it to set the value in the grid back to null. However, when I set the value back to null (i.e., row[i].MyProperty(null)), the grid shows the non-breaking space character code instead of a blank. If I click in the cell and click off, the visible text goes back to a blank. How do I programmatically set it to blank?
I don't think you understand. I do not mind it *displaying* a non-breaking space. But it is displaying the *code* for a non-breaking space, as you can see in the attached image.
Hi Katrina,The grid renders 'empty' values (null, undefined and empty string) with a non-breaking space character - this is a by-design feature.If I've understood you correctly, you need to use a columns[i].formatter function for that column and if the new value is a null, render the blank symbol (or symbols) you need.Here's our official sample on how to use a column formatter function: http://es.infragistics.com/products/jquery/sample/grid/column-formatterHope this helps,Borislav