Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<pre lang="HTML">
@(Html.Kendo().Grid<IBATechnologies.IBA.Web.Models.AssetTransactionDetailViewModel>()
    .Name("transactionGrid")
    .Pageable()
        //.Editable(editable=>editable.Mode(GridEditMode.InLine))
    .Columns(colums =>
    {
        colums.Bound(p => p.assetCode).Width(100);
        colums.Bound(p => p.assetDesc).Width(100);

        colums.Bound(p => p.remark).Width(100);
        colums.Bound(p => p.currencyCode).Width(100);
        colums.Bound(p => p.rate).Width(100);
        colums.Bound(p => p.currencyRate).Width(100);
        colums.Bound(p => p.lcyAmount).Width(100);
        colums.Bound(p => p.documentDate).Width(100);
        colums.Command(command => { command.Destroy(); }).Width(100);
    })
    .ToolBar(toolbar => toolbar.Create())
.Editable(editable => editable.Mode(GridEditMode.InCell))
        .DataSource(dataSource => dataSource
    .Ajax()
    .PageSize(20)
    .ServerOperation(false)


    .Model(model => model.Id(p => p.assetCode))
    .Create(update => update.Action("TransactionDoc_Create", "AssetTransaction"))
                   .Read(read => read.Action("TransactionDoc_Read", "AssetTransaction", new { docno = 0 }))
                    .Update(update => update.Action("BrandEditingPopup_Update", "AssetTransaction"))
                    .Destroy(update => update.Action("BrandEditingPopup_Destroy", "AssetTransaction"))
)

        )



My grid is shown above, when i try to edit, all the dates after 12 is return as null. Please help me. .............................................................................................................................................
Posted

Hello

I guess the problem is that , kendogrid is taking the default format as 'mm-dd-yyyy'. If so there is a chance that , if mm is greater than 12 it will return null.

Just try after specifying the date format.

For Ex:

C#
columns.Bound()
    .Format("{0:dd-MMM-yyyy}")


(I am not sure about the exact syntax).


Regards
Dominic Abraham
 
Share this answer
 
Comments
Ajith Ravindran 20-Jun-15 3:42am    
Hi,Dominic,
Thank you for your support. But its still return Null, Any other idea?
Hey
issue is solved by adding culture. :) thank you
HTML
</script>



<script>
   kendo.culture("en-GB");
</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900