<
telerik:RadPropertyGrid
Item
=
"{Binding TheSetting}"
SearchBoxVisibility
=
"Hidden"
AutoGeneratePropertyDefinitions
=
"False"
SortAndGroupButtonsVisibility
=
"Collapsed"
SearchInNestedProperties
=
"False"
>
<
telerik:RadPropertyGrid.PropertyDefinitions
>
<
telerik:PropertyDefinition
GroupName
=
"Allgemein"
OrderIndex
=
"0"
Binding
=
"{Binding BaseSearchPath, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}"
Description
=
"Basispfad zur Suche der CSV Dateien"
DisplayName
=
"Basispfad"
/>
<
telerik:PropertyDefinition
GroupName
=
"Allgemein"
OrderIndex
=
"1"
Binding
=
"{Binding Map_FZeit, ValidatesOnDataErrors=True}"
Description
=
"Zuordnung Messwertzeit"
DisplayName
=
"Messwertzeit"
/>
<
telerik:PropertyDefinition
GroupName
=
"Allgemein"
OrderIndex
=
"2"
Binding
=
"{Binding Map_ZNr, ValidatesOnDataErrors=True}"
Description
=
"Zuordnung Messwertzeile"
DisplayName
=
"Messwertzeilennummer"
/>
<
telerik1:RadGridView
ShowGroupPanel
=
"False"
telerik1:TouchManager.IsTouchHitTestVisible
=
"False"
Grid.Column
=
"2"
Grid.Row
=
"3"
Name
=
"radGridView1"
IsEnabled
=
"True"
CanUserReorderColumns
=
"False"
IsReadOnly
=
"True"
<br> RowIndicatorVisibility="Collapsed" DataLoadMode="Asynchronous" <
br
> AutoGenerateColumns="False" IsFilteringAllowed="False"<
br
> ItemsSource="{Binding Someth.Oth}"<
br
> SelectedItem="{Binding OthSel}"<
br
> CanUserInsertRows="False" CanUserDeleteRows="False" Grid.ColumnSpan="3" Margin="1,1,1,0"><
br
> <
telerik1:RadGridView.Columns
><
br
> <
telerik1:GridViewDataColumn
Header
=
"Nume"
DataMemberBinding
=
"{Binding Person.Name}"
<br> Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><
br
> <
telerik1:GridViewDataColumn
Header
=
"Prenume"
DataMemberBinding
=
"{Binding <span style="
font-size: 14.44444465637207px;">Person</
span
><
br
>.SurName}" <
br
> Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><
br
> <
telerik1:GridViewDataColumn
Header
=
"Legitimatie"
DataMemberBinding
=
"{Binding <span style="
font-size: 14.44444465637207px;">Person</
span
><
br
>.Badge}" <
br
> Width="4*" TextWrapping="Wrap" IsReadOnly="True"/><
br
> </
telerik1:RadGridView.Columns
><
br
> </
telerik1:RadGridView
><
br
>
<telerik:RadExpander Grid.Row="0" Margin="5" >
<telerik:RadExpander.Header>
<Grid>
<telerik:RadButton Margin="0,0,10,0" Style="{DynamicResource RadImageButton}"
Command="{Binding Path=DataContext.CollapseCommand, RelativeSource={RelativeSource FindAncestor, AncestorType=telerikinput:RadExpander}}"
Visibility="{Binding Converter={StaticResource VisibilityConverter}, Path=IsHeaderExpand}">
</telerik:RadButton>
<telerik:RadButton Margin="0,0,10,0" Style="{DynamicResource RadImageButton}"
Command="{Binding Path=DataContext.ExpandCommand,RelativeSource={RelativeSource FindAncestor, AncestorType=telerikinput:RadExpander}}"
Visibility="{Binding Converter={StaticResource VisibilityConverter}, Path=IsCollapse}">
</telerik:RadButton>
<Label Content="Search Criteria" Margin="40,10,0,0" Style="{DynamicResource LabelBoldContentStyle}" HorizontalAlignment="Left"/>
</Grid>
</telerik:RadExpander.Header>
<Button Grid.Row="7" Grid.Column="7" Height="28" Width="50" Margin="0,0,46,0"
Content="Search" HorizontalAlignment="Right" FontWeight="Bold"
Command="{Binding Path=DataContext.SearchComamnd, RelativeSource={RelativeSource FindAncestor, AncestorType=telerik:RadExpander}}"/>
</Grid>
Please let me know what I am missing in my code ?
Thnx,
Sivakumar
Now, let's say the user adds a new Person and enters a name, selects child as the person type by accident and enters an age of 30. Because the Person is actually not a child, the age property becomes invalid and the row is set to invalid.
At this point the user is not able to change the Type to Adult because they cannot leave the age field.
This is particularly a problem if the user attempts to save a person without entering an age or type because the row becomes invalid, the type is not selected and the field that the user is stuck in is the Age field. They cannot edit the type column and so the age is always going to be invalid.
How do I get around this?
Thank you,
-Rebecca