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

Grid editing empty cells bug

3 Answers 209 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Szilard
Top achievements
Rank 1
Szilard asked on 06 Apr 2012, 08:18 AM
Hello,

I am trying to create an editable grid, whose dataSource contains fields with empty strings, which should then be set by the user. However, the Kendo Grid does not seem to support editing of cells whose content is empty.

You can try it out on jsFiddle
Is this a known issue, and how can I bypass it?

Thanks,
Szilard

3 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 09 Apr 2012, 08:01 AM
Hi Szilard,

That is happening because the types of the fields are missing. The following code should fix the problem:
schema: {
    model: {
        fields: {
            ID: { type: "string" },
            Description: { type: "string" }
         }
    }               
}

For convenience I modified your project - you could check the result here.

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
Szilard
Top achievements
Rank 1
answered on 10 Apr 2012, 06:11 AM
Cool, thanks!

Is there any way of specifying a default type for all fields (i.e. "string"), so that I don't have to define the schema for the entire model?


Regards,
Szilard
0
Alexander Valchev
Telerik team
answered on 11 Apr 2012, 10:21 AM
Hi Szilard,

At present there is no option that would allow you to define the type of all fields at once. I am afraid that you would have to define the type for each field in the model.

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!
Tags
Grid
Asked by
Szilard
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Szilard
Top achievements
Rank 1
Share this question
or