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
3220
NumericField: When pressing the spin button the underlying datatable doesn't get updeted
posted

Hello,

when pressing the spin button in the NumericField, the underlying DataTable doesn't get updated. Only when I leave the cell. OnCellValueChanges is used.

<igDP:FieldSettings DataItemUpdateTrigger="OnCellValueChange"/>

<igDP:XamDataGrid x:Name="grdInfeed" GroupByAreaLocation="None" DataSource="{Binding InfeedTableView}" IsEnabled="{Binding IsEditable}">
            <igDP:XamDataGrid.FieldLayoutSettings>
                <igDP:FieldLayoutSettings AutoGenerateFields="False" SelectionTypeCell="None"/>
            </igDP:XamDataGrid.FieldLayoutSettings>
            <igDP:XamDataGrid.FieldSettings>
                <igDP:FieldSettings DataItemUpdateTrigger="OnCellValueChange"/>
            </igDP:XamDataGrid.FieldSettings>
            <igDP:XamDataGrid.FieldLayouts>
                <igDP:FieldLayout>
                    <igDP:TextField Name="COL_SortingProgramName" Label="{x:Static l:lang.MachineControl_Infeed_TableColumn_SortingProgram}" AllowEdit="False" Width="300"/>
                    <igDP:NumericField Name="Speed" Label="{x:Static l:lang.MachineControl_Infeed_TableColumn_Speed}" Mask="{}{number:0-100}" SpinButtonDisplayMode="Always" >
                        <igDP:NumericField.PromptChar>
                            <sys:Char></sys:Char>
                        </igDP:NumericField.PromptChar>
                    </igDP:NumericField>
                    <igDP:TextField Name="IsCurrent" Visibility="Collapsed"/>
                </igDP:FieldLayout>
            </igDP:XamDataGrid.FieldLayouts>
        </igDP:XamDataGrid>

Parents
No Data
Reply
  • 7555
    Offline posted

    Hello Bin,

    Thank you for posting. I am not able to reproduce the behavior your described.

    I used your code and bind with my own local data source and when I am pressing the spin button I noticed that underline dataitem did change without loosing the focus or leave the cell.

    Here I attached my test sample build against V20.2.

    Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.

    If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.

    Please let me know if I can provide any further assistance.

    Regards,

    8030.Sample.zip

Children