Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
445
AllowAddNew Option can't work when it binds properties placed in the class and its parent class.
posted

AllowAddNew Option can't work when it binds properties placed in the class and its parent class.

Hello.

I Set "AllowAddNew" option ON to update cell values of the record onto data model class.

I expected all fields displayed which have the public properties throughout from parent to child class.
With injected records initializing from code-behind, It displays fine.
But the "AddNewRecord" Row show only properties in parent class so that I can't update the properties in child class.

Please see the attached sample.


thank you so much

WpfApplication2.zip
  • 195
    Offline posted

    Hello James.Jeon,


    Thank you for waiting.

    After investigating this, it turned out that the problem is that the parent data is consumed as "CompBase" class and child data is consumed as "PinBase" class.

    What I mean by that, "CompBase" class only has "NameInBaseClass" property and "PinBase" only has "NameInBaseClass". So you can only add "NameInBaseClass" property.

    In general, xamDataGrid consumes same type of data. so, you should include all properties in one class instead of inheritance.


    I hope this will help.


    Best regards,
    Tatsushi Kiryu
    Developer support Engineer
    Infragistics

  • 195
    Offline posted

    Hello James.Jeon,

    Thank you for posting in our community.

    I'm investigating this. I will let you know if there is any further update.


    Best regards,
    Tatsushi Kiryu
    Developer support Engineer
    Infragistics