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

Setting editable to inline doesn't enter Edit Mode automatically. Plus problem with Tab out of modified cell.

2 Answers 193 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jerry T.
Top achievements
Rank 1
Jerry T. asked on 30 May 2012, 08:14 PM

Here's my grid configuration:

            gridItems.kendoGrid({
                selectable: "row",
                scrollable: true,
                pageable: false,
                sortable: true,
                filterable: false,
                rowTemplate: kendo.template($("#gridItemsRowTemplate").html()),
                dataSource: {
                    data: data
                },
                columns: columns,
                editable: "inline",
                toolbar: ["create", "save", "cancel"],
                navigatable: true
        });

I've had to add the following code in order to get my grid into edit mode:

            $("#gridItems td").click(function() {
                if (!$(this).closest('tr').hasClass('k-grid-edit-row')) {
                    costingSheetItems.data("kendoGrid").editRow($(this).closest('tr'));

                    // remove spinner controls from numeric textboxes
                    var numericWrapper = $("#gridItems td").find(".k-numeric-wrap")

                    numericWrapper.find(".k-select").hide();
                    numericWrapper.addClass("expand-padding");
                }
            });


BUT, once it is in edit mode after I click on a row, if I type a new value into a cell and press Tab, the grid leaves edit mode and I can't get it back into edit mode.

Jerry

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 01 Jun 2012, 02:12 PM
Hi Jerry,

I have already replied on your support ticket on the same subject. For convenience I am pasting my reply here too.

I tried to reproduce your case in this Fiddle, but to no avail. Could you check my example and let me know what I missing? Reproducing the problem in a sample page will be also appreciated.

As an assumption, this behaviour might be caused by the missing dataSource model. Please try to define the model id and fields and let me know if the problem still persists. In addition, it is a bit unclear which editing mode you would like to use. You have set the toolbar commands in a way suitable for batch editing while in the grid options the editable is set to "inline". 

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jerry T.
Top achievements
Rank 1
answered on 01 Jun 2012, 08:41 PM
I did have a model assigned to the scheme for the datasource...I just neglected to include that here.  But, I've replied to the ticket so we can focus on there for now.
Tags
Grid
Asked by
Jerry T.
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Jerry T.
Top achievements
Rank 1
Share this question
or