UXGridView UpdateRow is not fired

1 reply. Last post: November 3, 2011 5:27 AM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi

I have a UXGridView and for each column a FieldLabel (please see attached picture).
The changes I make on FieldLabel will be synchronized directly with the UXGridView. But the Row is not in edit mode. The events ValidateRow and UpdateRow are not fired!
I want the same behavior as when I change a cell in UXGridView and leave the row
How can I do this?

Update:  I could display the FieldLabel read-only and only editable in edit mode. I have not found a property like "IsEditMode".

Here some code:

<Intersoft:UXGridView Intersoft:DockPanel.IsFillElement="True" AutoGenerateColumns="False"
                        Style="{StaticResource UXGridViewStyle}"
                        IsBusy="{Binding IsBusy, Mode=TwoWay}" 
                        IsRefreshed="{Binding IsRefreshed, Mode=TwoWay}"
                        SortDescriptors="{Binding QueryDescriptor.SortDescriptors, Mode=TwoWay}"
                        PageDescriptor="{Binding QueryDescriptor.PageDescriptor}"
                        FilterDescriptors="{Binding QueryDescriptor.FilterDescriptors, Mode=TwoWay}"
                        PageSize="{Binding ElementName=PageSize, Path=Text}"
                        ItemsSource="{Binding Path=Items}"
                        SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                        NewItem="{Binding NewItem, Mode=TwoWay}"
                        HasChanges="{Binding HasChanges}"
                        AutoEditOperation="{Binding AutoEditOperation}" 
                        PrepareNewRowCommand="{Binding PrepareNewRowCommand}"
                        ValidateRowCommand="{Binding ValidateRowCommand}" 
                        InsertRowCommand="{Binding InsertRowCommand}"
                        DeleteRowCommand="{Binding DeleteRowCommand}" 
                        UpdateCellCommand="{Binding UpdateCellCommand}" 
                        UpdateRowCommand="{Binding UpdateRowCommand}"
                        SaveChangesCommand="{Binding SaveChangesCommand}" 
                        RejectRowCommand="{Binding RejectRowCommand}"
                        RejectChangesCommand="{Binding RejectChangesCommand}"
                        RefreshCommand="{Binding RefreshCommand}"
                        CanUserAddRows="True">
    <Intersoft:UXGridView.Columns>
        <Intersoft:UXGridViewTextColumn Binding="{Binding ID}" Visibility="Collapsed"/>
        <Intersoft:UXGridViewTextColumn Binding="{Binding FQDN, Mode=TwoWay, ValidatesOnExceptions=True,NotifyOnValidationError=True,ValidatesOnNotifyDataErrors=True}"/>
        <Intersoft:UXGridViewTextColumn Binding="{Binding Description}"/>
        <Intersoft:UXGridViewCheckBoxColumn Binding="{Binding Hide}" />
        <Intersoft:UXGridViewTextColumn Binding="{Binding Version}" Visibility="Collapsed"/>
    </Intersoft:UXGridView.Columns>
</Intersoft:UXGridView>
<Intersoft:UXItemsControl ItemContainerStyle="{StaticResource FieldLabelStyle}">
    <Intersoft:FieldLabel Header="ID:">
        <Intersoft:UXTextBox Text="{Binding SelectedItem.ID}" Style="{StaticResource FieldLabelReadOnlyTextBoxStyle}"/>
    </Intersoft:FieldLabel>
    <Intersoft:FieldLabel Header="FQDN:">
        <Intersoft:UXTextBox Text="{Binding SelectedItem.FQDN, Mode=TwoWay}" Style="{StaticResource FieldLabelTextBoxStyle}"/>
    </Intersoft:FieldLabel>
    <Intersoft:FieldLabel Header="Beschreibung:" Style="{StaticResource RequiredFieldLabelStyle}">
        <Intersoft:UXTextBox Text="{Binding SelectedItem.Description}" Style="{StaticResource FieldLabelTextBoxStyle}" />
    </Intersoft:FieldLabel>
    <Intersoft:FieldLabel Header="Ausblenden:">
        <Intersoft:UXCheckBox IsChecked="{Binding SelectedItem.Hide}" Style="{StaticResource FieldLabelCheckBoxStyle}" />
    </Intersoft:FieldLabel>
</Intersoft:UXItemsControl>

Regards

Michael

 

All times are GMT -5. The time now is 2:27 PM.
Previous Next