Is there any way for ExtJs number renderer to display nothing if the number is zero?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.