Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143059 | Mar 2,2019 12:45 PM UTC | Aug 20,2019 10:18 AM UTC | ASP.NET MVC | 9 |
![]() |
Tags: Grid |
Hi Mahyar,
Thanks for contacting syncfusion support. We are happy to
assist you.
Query: I need to show
exactly the string date as it has retrieved from json
To achieve your requirement we suggest you to define the
type as “date” in the column definition and also you can specific the desire
format using format property. Refer the below code example,
@(Html.EJ().Grid<object>("testGrid") ………….. .Columns(col => {
col.Field("OrderID").IsPrimaryKey(true).Add();
col.Field("OrderDate").HeaderText("OrderDate").Type("date").Format("{0:yyyy-MM-dd}").Add(); }) ) |
Also refer the below link for help documentation,
https://help.syncfusion.com/aspnetmvc/grid/columns#type
https://help.syncfusion.com/aspnetmvc/grid/columns#format
Regards,
Manivannan Padmanaban.
<script>
ej.dateParse = false;
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.