This is a migrated thread and some comments may be shown as answers.

Data Loss from DatePicker In Grid Inline Edit

1 Answer 197 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Jason asked on 05 May 2015, 11:19 PM

Seeing an interesting problem when combining DatePicker and Grid functionality in the inline editing.

The date is editable without clicking the edit button.  Clicking the edit button returns the date field to a input box and datepicker functionality is lost and when cancelling an edit the date is lost entirely and becomes an empty field.

Downloaded some other code samples out there and seeing some of the same issues.  Anyone come upon these?



        .Columns(columns =>
            columns.Bound(p => p.CommissionId).Hidden();
            columns.Bound(p => p.TenantId).Hidden();
            columns.Bound(p => p.SimpleName);
            columns.Bound(p => p.StartDate).HtmlAttributes(new
                @class = "templateCell"
                .HtmlAttributes(new { data_bind = "value:StartDate" })
            columns.Bound(p => p.CustomerName);
            columns.Bound(p => p.CustomerNumber);
            columns.Command(command =>
        .Events(ev => ev.DataBound("db"))
        .Editable(editable => editable.Mode(GridEditMode.InLine))
        .DataSource(dataSource => dataSource
            .Model(model =>
                    model.Id(p => p.CommissionId);
                    model.Field(p => p.CommissionId).Editable(false);
            .Update(update => update.Action("EditingInline_Update", "Commissions"))
            .Destroy(destroy => destroy.Action("EditingInLine_Destroy", "Commissions"))


function db(e) {
        var grid = this;
            $(".templateCell").each(function () {
                var tr = $(this).closest('tr');
                var item = grid.dataItem(tr);
                kendo.bind($(this), item);



1 Answer, 1 is accepted

Sort by
Boyan Dimitrov
Telerik team
answered on 07 May 2015, 01:20 PM

Hello Jason,

In server binding grid the Template method should be used instead of ClientTemplate (used in ajax-bound grid). 

Boyan Dimitrov

See What's Next in App Development. Register for TelerikNEXT.

Asked by
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question