or
<
tGrid:RadGridView
IsReadOnly
=
"{Binding InEditMode}"
x:Name
=
"cueSheetGrid"
HorizontalAlignment
=
"Stretch"
RowDetailsVisibilityMode
=
"Collapsed"
AlternationCount
=
"0"
RowIndicatorVisibility
=
"Collapsed"
DragElementAction
=
"None"
AreRowDetailsFrozen
=
"False"
CanUserFreezeColumns
=
"True"
>
<
tGrid:RadGridView.ChildTableDefinitions
>
<
tGrid:GridViewTableDefinition
>
<
tGrid:GridViewTableDefinition.Relation
>
<
tData:PropertyRelation
ParentPropertyName
=
"CueEvents"
/>
</
tGrid:GridViewTableDefinition.Relation
>
</
tGrid:GridViewTableDefinition
>
</
tGrid:RadGridView.ChildTableDefinitions
>
<
tGrid:RadGridView.Columns
>
<
tGrid:GridViewDataColumn
DataMemberBinding
=
"{Binding CueNum}"
Header
=
"Cue Number "
/>
<
tGrid:GridViewDataColumn
DataMemberBinding
=
"{Binding Label}"
Header
=
"Label "
/>
</
tGrid:RadGridView.Columns
>
<
tGrid:RadGridView.HierarchyChildTemplate
>
<
DataTemplate
>
<
tGrid:RadGridView
x:Name
=
"EventView"
ItemsSource
=
"{Binding CueEvents}"
HeaderRowStyle
=
"{DynamicResource MyHeaderRowStyle}"
Style
=
"{DynamicResource GridStyleDefault}"
RowStyle
=
"{DynamicResource EventRowStyle}"
AlternateRowStyle
=
"{DynamicResource EventAltRowStyle}"
AlternationCount
=
"2"
>
<
tGrid:RadGridView.Columns
>
<
tGrid:GridViewDataColumn
IsReadOnly
=
"True"
DataMemberBinding
=
"{Binding Machine.Name}"
Header
=
"Machine "
/>
<
tGrid:GridViewDataColumn
DataMemberBinding
=
"{Binding Position}"
Header
=
"Position "
/>
<
tGrid:GridViewDataColumn
DataMemberBinding
=
"{Binding Position}"
Header
=
"Position "
/>
</
tGrid:RadGridView.Columns
>
</
tGrid:RadGridView
>
</
DataTemplate
>
</
tGrid:RadGridView.HierarchyChildTemplate
>
</
tGrid:RadGridView
>
<
telerikNavigation:RadWindow
x:Class
=
"App_ControlLibrary.frmDialogoEntradaDatos"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikNavigation
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:lr
=
"clr-namespace:App_ControlLibrary"
telerik:StyleManager.Theme
=
"Windows7"
Height
=
"181"
Width
=
"410"
BorderBackground
=
"#FF4B72B1"
BorderBrush
=
"#FF0C0F21"
ResizeMode
=
"NoResize"
Header
=
"{x:Static lr:resxDialogoEntradaDatos.titDialogo}"
>
<
Grid
>
<
Grid.Background
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FF80A1E4"
Offset
=
"0"
/>
<
GradientStop
Color
=
"White"
Offset
=
"0.5"
/>
<
GradientStop
Color
=
"#FF5C86DC"
Offset
=
"1"
/>
<
GradientStop
Color
=
"#FFA8C5FF"
Offset
=
"0.139"
/>
<
GradientStop
Color
=
"#FFA6C3FF"
Offset
=
"0.787"
/>
</
LinearGradientBrush
>
</
Grid.Background
>
<
StackPanel
Width
=
"Auto"
Height
=
"Auto"
Orientation
=
"Horizontal"
>
<
StackPanel
Width
=
"64"
Height
=
"Auto"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
>
<
Image
Source
=
"Imagenes/Interrogante.png"
Width
=
"50"
Height
=
"50"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
<
StackPanel
Width
=
"328"
Height
=
"Auto"
HorizontalAlignment
=
"Right"
>
<
Grid
Height
=
"41"
>
<
TextBlock
x:Name
=
"lbltitulo"
Text
=
"Hola Mundo"
Margin
=
"0"
Height
=
"Auto"
Width
=
"Auto"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
TextWrapping
=
"Wrap"
FontFamily
=
"Tahoma"
FontSize
=
"13.333"
Foreground
=
"Black"
/>
</
Grid
>
<
Grid
x:Name
=
"pnlTexto"
Height
=
"49"
Visibility
=
"Visible"
>
<
TextBox
x:Name
=
"txtDato"
Style
=
"{StaticResource Estilo1TextBox}"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"27"
Width
=
"313"
MaxLines
=
"1"
>
<
TextBox.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
TextBox.Effect
>
</
TextBox
>
</
Grid
>
<
Grid
x:Name
=
"pnlPassword"
Height
=
"49"
Visibility
=
"Hidden"
>
<
PasswordBox
x:Name
=
"txtPassword"
Style
=
"{StaticResource Estilo1PasswordBox}"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"27"
Width
=
"313"
>
<
PasswordBox.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
PasswordBox.Effect
>
</
PasswordBox
>
</
Grid
>
<
Grid
x:Name
=
"pnlLista"
Height
=
"49"
Visibility
=
"Hidden"
>
<
telerik:RadComboBox
x:Name
=
"cbxLista"
IsSynchronizedWithCurrentItem
=
"True"
EmptyText
=
"{x:Static lr:resxDialogoEntradaDatos.msjSeleccione}"
IsEditable
=
"False"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"27"
Width
=
"317"
>
<
telerik:RadComboBox.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
telerik:RadComboBox.Effect
>
</
telerik:RadComboBox
>
</
Grid
>
<
Grid
x:Name
=
"pnlNumero"
Height
=
"49"
Visibility
=
"Hidden"
>
<
telerik:RadMaskedTextBox
x:Name
=
"fmtDato"
Mask
=
"n0"
MaskType
=
"Numeric"
HorizontalContentAlignment
=
"Right"
Height
=
"27"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Width
=
"180"
>
<
telerik:RadMaskedTextBox.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
telerik:RadMaskedTextBox.Effect
>
</
telerik:RadMaskedTextBox
>
</
Grid
>
<
Grid
x:Name
=
"pnlFecha"
Height
=
"59"
Visibility
=
"Hidden"
>
<
telerik:RadDateTimePicker
x:Name
=
"dtpFecha"
InputMode
=
"DatePicker"
DisplayFormat
=
"Short"
DateTimeWatermarkContent
=
"{x:Static lr:resxDialogoEntradaDatos.msjIngreseFecha}"
Height
=
"27"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
>
<
telerik:RadDateTimePicker.Effect
>
<
DropShadowEffect
Direction
=
"283"
BlurRadius
=
"10"
ShadowDepth
=
"1"
/>
</
telerik:RadDateTimePicker.Effect
>
</
telerik:RadDateTimePicker
>
</
Grid
>
<
Grid
Height
=
"51"
>
<
Button
x:Name
=
"btnAceptar"
Content
=
"{x:Static lr:resxDialogoEntradaDatos.btnAceptar}"
BorderBrush
=
"Black"
Foreground
=
"White"
Height
=
"29"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Center"
Width
=
"99.696"
Click
=
"btnAceptar_Click"
>
<
Button.Background
>
<
LinearGradientBrush
EndPoint
=
"0,1"
StartPoint
=
"0,0"
>
<
GradientStop
Color
=
"#FFB9DEFF"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#FF3B9CF5"
Offset
=
"0.5"
/>
<
GradientStop
Color
=
"#FF0077E5"
Offset
=
"0.539"
/>
<
GradientStop
Color
=
"#FF366FA5"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
Button.Background
>
</
Button
>
<
Path
Data
=
"M1,4 L379,5"
Fill
=
"#FF6289BC"
Height
=
"2"
Margin
=
"0,4,-1,0"
Stretch
=
"Fill"
Stroke
=
"Black"
VerticalAlignment
=
"Top"
/>
</
Grid
>
</
StackPanel
>
</
StackPanel
>
</
Grid
>
</
telerikNavigation:RadWindow
>
frmDialogoEntradaDatos frmDialogo =
new
frmDialogoEntradaDatos();
frmDialogo.Mensaje = resxUsuarios.titSolicitudPassword;
frmDialogo.TipoDialogo = frmDialogoEntradaDatos.Tipo.TEXTO_PASSWORD;
frmDialogo.OnClose +=
new
CloseEventHandler(EstablecerContraseña);
frmDialogo.Show();
RadWindow frmDialogo =
new
RadWindow();
frmDialogo.Width = 300;
frmDialogo.Height = 180;
frmDialogo.ShowDialog();
I have a GridView that is grouped on a column named Status (which in this case is a GridViewComboBoxColumn even though I've seen the same behavior for GridViewCheckBoxColumn). When I change value of the Status and press Enter, the record is correctly moved to its new group, BUT the original group still holds a "ghost" record that cannot be modified. The only way to get rid of that record is to refresh the view manually by sorting or grouping.
Why does this happen? Must I refresh the view programmatically to avoid it?
public
class
Node
{
public
Node(
string
myText)
{
this
.Text = myText;
this
.Nodes =
new
ObservableCollection<Node>();
}
public
string
Text {
get
;
set
; }
public
ObservableCollection<Node> Nodes {
get
;
private
set
; }
}
ObservableCollection<Node> nodes =
new
ObservableCollection<Node>();
nodes.Add(
new
Node(
"Company"
));
nodes[0].Nodes.Add(
new
Node(
"Department"
));
nodes[0].Nodes[0].Nodes.Add(
new
Node(
"here are you"
));
radTreeView1.ItemsSource = nodes;
<
Window.Resources
>
<
DataTemplate
x:Key
=
"itemTemplate"
>
<
TextBlock
x:Name
=
"child"
Text
=
"{Binding Text}"
/>
</
DataTemplate
>
<
HierarchicalDataTemplate
x:Key
=
"masterTemplate"
ItemsSource
=
"{Binding Nodes}"
ItemTemplate
=
"{StaticResource itemTemplate}"
>
<
telerik:RadTreeViewItem
Header
=
"{Binding Text}"
/>
</
HierarchicalDataTemplate
>
</
Window.Resources
>
<
Grid
>
<
telerik:RadTreeView
Name
=
"radTreeView1"
ItemTemplate
=
"{StaticResource masterTemplate}"
/>
</
Grid
>