This question is locked. New answers and comments are not allowed.
Hi,
This is an extremely urgent request so your prompt response is much appreciated:
Problem Statement
I have a telerik Rad grid view data column and have defined a cell template. Please see below the corresponding xaml code:
Once the screen is run, the column appears like shown in attachment screenshot_1.jpg. But as soon as I click the contents of a particluar row of this column i.e. on the textblock CatName, the row goes into edit mode and contents of the cell wipes off as shown in screenshot_2.jpg.
Can you please share your comments on this and help me figure out the root cause of the problem??
Regards,
Shiva
This is an extremely urgent request so your prompt response is much appreciated:
Problem Statement
I have a telerik Rad grid view data column and have defined a cell template. Please see below the corresponding xaml code:
<telerik:GridViewDataColumn Header="Category" DataMemberBinding="{Binding ListCategory, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, UpdateSourceTrigger=Default}" Width="Auto"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <telerik:ListBox x:Name="lstCategory" ItemsSource="{Binding ListCategory, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, UpdateSourceTrigger=Default}" IsEnabled="True" SelectionMode="Multiple" > <telerik:ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" VerticalAlignment="Top"/> </ItemsPanelTemplate> </telerik:ListBox.ItemsPanel> <telerik:ListBox.ItemTemplate> <DataTemplate> <StackPanel DataContext="{Binding}" Orientation="Horizontal"> <CheckBox Command="{Binding DataContext.SetIsRowUpdatedCommand, ElementName=lstCategory, Mode=TwoWay}" IsChecked="{Binding IsCategorySelected, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, UpdateSourceTrigger=Default}" Margin="15, 0, 0, 0"></CheckBox> <TextBlock Text="{Binding CategoryName, Mode=TwoWay}" x:Name="CatName"></TextBlock> <TextBlock Text="{Binding CategoryID, Mode=TwoWay}" Visibility="Collapsed"></TextBlock> </StackPanel> </DataTemplate> </telerik:ListBox.ItemTemplate> </telerik:ListBox> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn>Once the screen is run, the column appears like shown in attachment screenshot_1.jpg. But as soon as I click the contents of a particluar row of this column i.e. on the textblock CatName, the row goes into edit mode and contents of the cell wipes off as shown in screenshot_2.jpg.
Can you please share your comments on this and help me figure out the root cause of the problem??
Regards,
Shiva
