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
  • 30945
    Verified Answer
    Offline posted

    Hello sykobag,

     

    Thank you for providing the data that you are using. I have created a sample application using the XAML and the data that you have posted and I could not manage to reproduce it. I have tested the sample application using both the RTM (11.2.20112.1012) and the latest service release (11.2.20112.2076) and the Add New Record and the Filter record are editable.

     

    Would you please provide me with more detailed information regarding the environment in which you are developing you application (Operating system, Service Release, Integrated development environment and the specific version of our product that you are using)?

     

    Looking forward to hearing from you.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    ActiveDataItemBinding.zip
Children