This question is locked. New answers and comments are not allowed.
Hi,
I want a comboBox in my GridView. I saw some example and I did that:
The problem is that I can“t bind and populate the comboBox that is inside of Cell Template.
I have a different collection for ComboBox.
Any idea?
I want a comboBox in my GridView. I saw some example and I did that:
<telerik:RadGridView Name="GrdConvocados" Background="Transparent" ItemsSource="{Binding OCGrupoParticipantesReuniao}" BorderThickness="0" HorizontalAlignment="Left" Width="Auto" MaxHeight="350" RowHeight="20" Height="300" Grid.Row="1" Grid.Column="0" AutoGenerateColumns="False" SelectionMode="Single" IsReadOnly="True" Cursor="Hand" RowIndicatorVisibility="Collapsed" IsFilteringAllowed="True" ShowGroupPanel="False" ShowColumnFooters="False" ShowInsertRow="False" telerik:RadDragAndDropManager.AllowDrop="True"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding EntidadesProp.TitulosProp.DesignacaoProp}" Header="TĆtulo" Width="0.15*"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding EntidadesProp.TiposentidadeProp.DesignacaoProp }" Header="Tipo Entidade" Width="0.15*"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding EntidadesProp.NomeTratamentoProp}" Header="Nome" Width="0.6*"/> <telerik:GridViewDataColumn Header="Função" Width="0.25*"> <telerik:GridViewDataColumn.CellTemplate> <DataTemplate> <Grid> <Grid.RowDefinitions> <RowDefinition/> </Grid.RowDefinitions> <telerik:RadComboBox IsEnabled="True" ItemsSource="{Binding OCGrupoParticipantesReuniao}" DisplayMemberPath="EntidadesProp.NomeTratamentoProp" SelectedItem="{Binding Path=DataContext.ParticipanteSeleccionado.FuncoesreuniaoProp,ElementName=LayoutRoot,Mode=TwoWay}"/> </Grid> </DataTemplate> </telerik:GridViewDataColumn.CellTemplate> </telerik:GridViewDataColumn>The problem is that I canĀ“t bind and populate the comboBox that is inside of Cell Template.
I have a different collection for ComboBox.
Any idea?