or
| public class DisplayData |
| { |
| public string Name { get; set; } |
| public SomeOtherClass Prop { get; set; } |
| } |
| public class SomeOtherClass |
| { |
| public string OtherName { get; set; } |
| } |
| <telerik:GridViewDataColumn |
| Header="Name" |
| DataMemberBinding="{Binding Path=Name, Mode=OneWay}" |
| Width="2*" |
| IsReadOnly="True"/> |
| <telerik:GridViewDataColumn |
| Header="Other" |
| DataMemberBinding="{Binding Path=Prop, Mode=OneWay}" |
| Width="3*" |
| IsReadOnly="True"/> |
| <telerik:GridViewDataColumn |
| Header="Name" |
| DataMemberBinding="{Binding Path=Name, Mode=OneWay}" |
| Width="2*" |
| IsReadOnly="True"/> |
| <telerik:GridViewDataColumn |
| Header="Other" |
| DataMemberBinding="{Binding Path=Prop.OtherName, Mode=OneWay}" |
| Width="3*" |
| IsReadOnly="True"/> |
| <telerik:GridViewDataColumn |
| Header="Name" |
| DataMemberBinding="{Binding Path=Name, Mode=OneWay}" |
| Width="2*" |
| IsReadOnly="True"/> |
| <telerik:GridViewDataColumn |
| Header="Other" |
| DataMemberBinding="{Binding Path=Prop, Mode=OneWay}" |
| DisplayMemberPath="OtherName" |
| Width="3*" |
| IsReadOnly="True"/> |

| <telerik:RadGridView.Resources> |
| <ControlTemplate x:Key="cellTemplate1" TargetType="{x:Type telerik:GridViewCell}"> |
| <RadioButton IsChecked="{Binding Field.Record.Data.RB, RelativeSource={RelativeSource TemplatedParent}}" |
| HorizontalAlignment="Center" VerticalAlignment="Center" /> |
| </ControlTemplate> |
| <Style x:Key="RBbooleanCellStyle"> |
| <Setter Property="telerik:GridViewCell.Template" Value="{StaticResource cellTemplate1}" /> |
| </Style> |
| </telerik:RadGridView.Resources> |
| private void GridViewGroupRow_Loaded(object sender, RoutedEventArgs args) { GridViewGroupRow groupRow = (GridViewGroupRow)args.OriginalSource; groupRow.IsExpanded = false; } private void HeaderButton_Click(object sender, RoutedEventArgs e) { FrameworkElement element = (FrameworkElement)sender; var row = element.GetVisualParent<GridViewRow>(); row.IsSelected = true; } |
Hello,
I know how to create a combobox column and fill it with value, however
each combobox cell in the column does not show the drop down arrow, unless
the user clicks on the cell.
I tries using a combobox template on the column and visually it works, however when I do so
the combobox's possible values are not displayed in its drop down.
Hope you can assist.
Erez