Kendo Grid get wrong if column name is "Group"

2 posts, 0 answers
  1. Gheorghe
    Gheorghe avatar
    2 posts
    Member since:
    Feb 2012

    Posted 13 Nov 2015 Link to this post

    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?
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 18 Nov 2015 Link to this post

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