ExtJS number renderer: hide if zero
Is there any way for ExtJs number renderer to display no开发者_运维百科thing if the number is zero?
That's no complete solution, more some hints; since that int in ExtJS can no longer be null you will always endup with 0. You just can create a custom type that supports null, then you will be able to di this. Or if you don't need any calculations render all into a string.
Edit:
By now you can define useNull on a field and in addition define a defalutValue. But that's not all you can also define a custom converter and/or a custom serializer. So there shouldn't be any problems anymore when using nullable types.
精彩评论