ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
ClientFormatFunc & Dates
Title:
B
I
{code}
?
How can I: 1. specify a custom date format 2. suppress (blank) a specified dated value e.g. 1900/01/01 Thanks
Save Changes
Cancel
Ratladi
asked at 06 Mar 2014
Answers
B
I
{code}
?
you can format it at the server side like here: http://demo.aspnetawesome.com/GridDemo/CustomFormat, note the line: Map = o => new { o.Person, o.Price, o.Food, Date = o.Date.ToString("dd MMMM yyyy"), o.Location } using the ClientFormatFunc you can define a js function that receives the model of the row and must return a string, you can see it used in the link metntioned above to format the price
Save Changes
Cancel
Omu
answered at 06 Mar 2014
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