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

problem with k-edit-cell. fields vanished

2 Answers 224 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Giulio
Top achievements
Rank 1
Giulio asked on 06 Feb 2012, 08:26 PM
if I have only two or more field editable in a row, when i click on a uneditable field this vanishes.

just attached a snapshot:


this is my grid declaration:

        $(function() {
            $("#grid").kendoGrid({
                pageable: true,
                dataSource: {
                    type: "json",
                    serverPaging: true,
                    serverSorting: true,
                    transport: {
                        read: "?module=<?=$_REQUEST["module"]?>&applettype=kserver&mode=action&q=2"    ,
                    },
                    schema: {
                        data: "data",
                        total: "total",
                        model: {
                            id: "id",
                            fields: {
                                NAME: { editable: true },
                                STATUS: { editable: true },
                                UPDATED: { editable: true },
                            }
                        }
                    },
                    pageSize: <?=$ROW_LIMIT?>,
                    serverPaging: true,
                    error: function(e) {
                        alert(e.responseText);
                    },
                    //sort: { field: "CREATED", dir: "asc" },
                },
                editable: true,
                //navigable: true,
                selectable: true,
                //scrollable: true,
                sortable: {
                    mode: "single", // enables multi-column sorting
                    allowUnsort: true
                },              
                columns: [
                              { title: "<?=$LBL_ACTIVITIES_FIELD_CREATED;?>",field: "CREATED" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_NAME;?>",field: "NAME" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_AREA;?>",field: "AREA" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_STATUS;?>",field: "STATUS" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_PRIORITY;?>",field: "PRIORITY" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_RECURSE_SAVE;?>",field: "RECURSE_SAVE" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_PR_GRP_NAME;?>",field: "PR_GRP_NAME" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_OWNER_NAME;?>",field: "OWNER_NAME" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_EXP_DT;?>",field: "EXP_DT" },
                              { title: "<?=$LBL_ACTIVITIES_FIELD_UPDATED;?>",field: "UPDATED" }
                          ],
                    
                toolbar: [ "save", "cancel","destroy","create" ]  // adds save and cancel buttons
            });

        });

thanks
Giulio

2 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 07 Feb 2012, 10:53 AM
Hi Giulio,

This behavior is caused by the fact that not all of the fields are described in the model definition. You should set all of the non editable properties as such in the model.

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Giulio
Top achievements
Rank 1
answered on 07 Feb 2012, 07:30 PM
Perfect!!

... loving kendoui every day ....
Tags
Grid
Asked by
Giulio
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Giulio
Top achievements
Rank 1
Share this question
or