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

Grid InCell Edit dismisses changes after cell left

2 Answers 37 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 24 Jul 2016, 05:39 PM

Hi,

After I updated from 2015.3.1111 trial to 2016.2.714 (licensed) my grid incell edit is not longer working.I can select the row with the checkbox, uncheck it, but as soon as I leave the cell, it is again checked. I assume that the change is not being applied to the underlying model (and I see "Ja" in the cell) ...

Here is my grid:

@(Html.Kendo().Grid<ModelLayer.Bild>()
    .Name("bildergrid")
    .HtmlAttributes(new { style = "height:600px;" })
    .Columns(columns =>
    {
        columns.Bound(p => p.BildBase64).Title("").ClientTemplate("<img class='gallery' rel='bilder' style='width:100px' href='data:image/png;base64, #: BildBase64#' src='data:image/png;base64, #: BildBase64#'>").HtmlAttributes(new { style = "max-width:100px;width:100px;" }).Width(100);       
        columns.Bound(p => p.Internet).Width(30).ClientTemplate("#= Internet ? 'Ja' : 'Nein' #");
        columns.Bound(p => p.Expose).Width(30).Title("Mail").ClientTemplate("#= Expose ? 'Ja' : 'Nein' #");
        columns.Bound(p => p.Drucken).Width(30).ClientTemplate("#= Drucken ? 'Ja' : 'Nein' #");
        columns.Bound(p => p.Dateiname).Width(200);
        columns.Bound(p => p.Groesse).Width(80).Visible(false); ;
        columns.Bound(p => p.Pixel).Width(80).Visible(false);
        columns.Bound(p => p.Position).Width(100);
        columns.Bound(p => p.Pfad).Visible(false);
    })
        .DataSource(dataSource => dataSource

            .Ajax()
            .PageSize(0)
            .Read(r => r.Action("Bilder_Read", "Immo", new { immobilieId = "728" }))
            .ServerOperation(false).Model(model => model.Id(p => p.Id))
         )
         .Editable(e => e.Mode(GridEditMode.InLine))
        .Resizable(i => i.Columns(true))
        .Selectable(e => e.Enabled(true).Mode(GridSelectionMode.Single))
        .Scrollable()
        .AutoBind(false)
        //.ToolBar(t=> t.Create())


)

2 Answers, 1 is accepted

Sort by
0
Thomas
Top achievements
Rank 1
answered on 24 Jul 2016, 05:47 PM

Since I am not able to change my post, I just saw that I have a fragment inside of it of smt I was trying.

 

 .Editable(e => e.Mode(GridEditMode.InLine))

Shoud of course by

 .Editable(e => e.Mode(GridEditMode.InCell))

I tried InLine to see if it works, but I doesnt fit my needs, I need InCell, so I dropped it 

0
Konstantin Dikov
Telerik team
answered on 26 Jul 2016, 08:58 AM
Hi Thomas,

I have tested the ClientTemplate that you are using for the boolean values and everything works correctly on my side with version 2016.2 714.

Could you please inspect your browser's console and see if there are any JavaScript errors that could be causing the issue in question.

If the problem persists, please open regular support ticket and attach a sample, runnable project that replicates the issue, so we can test it locally.


Regards,
Konstantin Dikov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Thomas
Top achievements
Rank 1
Answers by
Thomas
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or