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
ActiveDataItem add record not editable
posted

I have a XamDataGrid (code below) in which I am binding to the ActiveDataItem, which works and updates when items are selected.  The issue is that although all fields are editable, and that works correctly, the "Add New Row" row is not editable, and neither are any of the filtering boxes.  If I remove the ActiveDataItem binding, then all of these are editable, and work correctly.  How can I fix this?

 


        <igDP:XamDataGrid GroupByAreaLocation="None" DataSource="{Binding ChannelCollection}"
                          Theme="{Binding Theme, Source={StaticResource MainVM}}" Margin="5"
                          ScrollingMode="Immediate" ActiveDataItem="{Binding SelectedChannel}" IsSynchronizedWithCurrentItem="True">
            <igDP:XamDataGrid.FieldLayoutSettings>
                <igDP:FieldLayoutSettings AllowAddNew="True" AutoGenerateFields="False" AllowDelete="True" HighlightAlternateRecords="True" SelectionTypeCell="None" SelectionTypeField="None"  SelectionTypeRecord="Single" AddNewRecordLocation="OnTop"/>
            </igDP:XamDataGrid.FieldLayoutSettings>
            <igDP:XamDataGrid.FieldSettings>
                <igDP:FieldSettings AllowEdit="True" AllowRecordFiltering="True"
                                    FilterOperatorDefaultValue="Contains" SortComparisonType="CaseInsensitive"
                                    AllowGroupBy="False" AllowHiding="Never" LabelTextAlignment="Center" LabelTextTrimming="CharacterEllipsis" LabelTextWrapping="NoWrap" />
            </igDP:XamDataGrid.FieldSettings>
            <igDP:XamDataGrid.FieldLayouts>
                <igDP:FieldLayout IsDefault="True">

                    <igDP:FieldLayout.SortedFields>
                        <igDP:FieldSortDescription FieldName="Name" />
                    </igDP:FieldLayout.SortedFields>
                    <igDP:Field DataType="{x:Type sys:String}" Name="Name" Label="Name" Visibility="Visible"></igDP:Field>
                    <igDP:Field DataType="{x:Type sys:String}" Name="Unit" Label="Units" Visibility="Visible" ></igDP:Field>
                    <igDP:Field DataType="{x:Type sys:Double}" Name="RangeMin" Label="Minimum Value" Visibility="Visible" ></igDP:Field>
                    <igDP:Field DataType="{x:Type sys:Double}" Name="RangeMax" Label="Maximum Value" Visibility="Visible" ></igDP:Field>
                </igDP:FieldLayout>
            </igDP:XamDataGrid.FieldLayouts>
        </igDP:XamDataGrid>

 

Edit: after further review, I found that if the list is empty, then the Add New record is editable, but as soon as an item is added, it is no longer editable.

Parents
No Data
Reply Children
No Data