ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to force displaying 0 for numeric columns in grid?
Title:
B
I
{code}
?
I have noticed that columns that are bound to integer (Int32 type) are not showing zero values. Instead, the cell is rendered empty. Is there any simple way like optional boolean switch or anything that can be specified at Column definition that would force displaying *0* in cells that contain zero values? Btw, searching in this forum and its overall organization is extremely poor. I hope it gets ported to some usable platform like vBulletin or similar _mature forum application_ soon.
Save Changes
Cancel
Peter Dzugas
asked at 06 Jan 2016
Answers
B
I
{code}
?
hi, thnx for noticing this problem, what you can do now is use Map on the server side and return a string instead of int Map = o => { Price = o.Price.ToString() or on the client you could use the ClientFormatFunc and in the js func return a string as well
Save Changes
Cancel
Omu
answered at 06 Jan 2016
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK