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
140
New row template not showing up when binding XamDataGrid to complex data
posted

Hi, I am trying to use XamDataGrid for Order entry scenario. An Order have a collection on Details, and each Detail have a reference to a Product. The XamDataGrid contains the list of Details and Im trying to provide funtionality to Edit and Add new Details.
To show complex data Im using UnboundField and the first problem I get is that the new row template is not showing up even though I enabled adding new row. I have attached a sample to demostrate my issue.

This is my xaml definition:

<igDP:XamDataGrid DataSource="{Binding Path=Master.Details}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<igDP:XamDataGrid.FieldSettings>
<igDP:FieldSettings CellClickAction="EnterEditModeIfAllowed" />
</igDP:XamDataGrid.FieldSettings>

<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings AutoGenerateFields="False" AllowAddNew="True"
AddNewRecordLocation="OnTop" AllowClipboardOperations="All"
AllowDelete="True" />
</igDP:XamDataGrid.FieldLayoutSettings>

<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>

<igDP:UnboundField
Name="ProductCode"
Label="Code"
BindingPath="Product.ProductCode"
BindingMode="TwoWay" />

<igDP:UnboundField
Name="ProductName"
Label="Name"
BindingPath="Product.ProductName"
BindingMode="TwoWay" />

</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>


  Thanks

Elio

 

  

ControlTests.zip