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

Kendo Grid get wrong if column name is "Group"

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gheorghe
Top achievements
Rank 1
Gheorghe asked on 13 Nov 2015, 11:37 AM
I've found some strange behaviour at kendogrid datafields binding. If I have a model with properties Group, in edit mode this column will have null property, doesn't matter if you scaffold it or not it won't be rendered on Update command. So in the Update action you will find null value at this column. Why does this occurred? Telerik background logic thinks that this a keyword or some sql command are generated and it thinks that is a group by? I don't know,,, but it strange. Does anybody meet something similar?

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 18 Nov 2015, 08:46 AM

Hello Gheorghe,

 

Indeed it is actually expected behavior, since "group" is actually a special word indicating the grouping expression (if any). The model binder will take the "group" value and try to use as grouping expression rather than set the "group" property of your model. 

 

I would suggest to use other name for your property in order to avoid any naming conflicts. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Gheorghe
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or