Grid InCell Edit dismisses changes after cell left

3 posts, 0 answers
  1. Thomas
    Thomas avatar
    30 posts
    Member since:
    Jul 2016

    Posted 24 Jul 2016 Link to this post


    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:

        .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

                .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))
            //.ToolBar(t=> t.Create())


  2. Thomas
    Thomas avatar
    30 posts
    Member since:
    Jul 2016

    Posted 24 Jul 2016 in reply to Thomas Link to this post

    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 

  3. Konstantin Dikov
    Konstantin Dikov avatar
    2115 posts

    Posted 26 Jul 2016 Link to this post

    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.

    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
Back to Top