This question is locked. New answers and comments are not allowed.
Hi
I have a grid view combo box which has 2 items displayed in the jepg1 provided.
After migrating to silverlight I am only getting one value in the combo box(refer jepg2).How can I get two values?
My xaml is below:
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding DisciplineId,Mode=TwoWay}"
SelectedValueMemberPath="DisciplineId"
DisplayMemberPath="DisciplineAlias"
UniqueName="Discipline" Width="80"
IsResizable="False" ItemsSource="{Binding Path=ProjectDisciplineList}"
>
<telerik:GridViewComboBoxColumn.Header>
<StackPanel>
<TextBlock Text="Discipline*" Width="48" />
</StackPanel>
</telerik:GridViewComboBoxColumn.Header>
</telerik:GridViewComboBoxColumn>
My view model is having the code below and I am getting value in "ProjectDisciplineList" property in the view model but only one
alies is getting displayed.I need Alies and Name both.
this.ProcessDisciplineService.GetAllProjectDisciplines(project, OnProjectProcessDisciplineLoadComplete);
private void OnProjectProcessDisciplineLoadComplete(ObservableCollection<Discipline> projectDisciplineList)
{
ProjectDisciplineList = projectDisciplineList;
OnPropertyChanged("ProjectDisciplineList");
}
public ObservableCollection<Discipline> ProjectDisciplineList
{
get;
set;
}
My domain model is given below
Regards,
Sulagna
I have a grid view combo box which has 2 items displayed in the jepg1 provided.
After migrating to silverlight I am only getting one value in the combo box(refer jepg2).How can I get two values?
My xaml is below:
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding DisciplineId,Mode=TwoWay}"
SelectedValueMemberPath="DisciplineId"
DisplayMemberPath="DisciplineAlias"
UniqueName="Discipline" Width="80"
IsResizable="False" ItemsSource="{Binding Path=ProjectDisciplineList}"
>
<telerik:GridViewComboBoxColumn.Header>
<StackPanel>
<TextBlock Text="Discipline*" Width="48" />
</StackPanel>
</telerik:GridViewComboBoxColumn.Header>
</telerik:GridViewComboBoxColumn>
My view model is having the code below and I am getting value in "ProjectDisciplineList" property in the view model but only one
alies is getting displayed.I need Alies and Name both.
this.ProcessDisciplineService.GetAllProjectDisciplines(project, OnProjectProcessDisciplineLoadComplete);
private void OnProjectProcessDisciplineLoadComplete(ObservableCollection<Discipline> projectDisciplineList)
{
ProjectDisciplineList = projectDisciplineList;
OnPropertyChanged("ProjectDisciplineList");
}
public ObservableCollection<Discipline> ProjectDisciplineList
{
get;
set;
}
My domain model is given below
namespace LeMonNext.Common.Entities
{
[DataContract(Name = "Discipline")]
public class Discipline
{
[DataMember]
public int DisciplineId { get; set; }
[DataMember]
public string DisciplineName { get; set; }
[DataMember]
public string DisciplineAlias { get; set; }
[DataMember]
public string DisciplineDesc { get; set; }
[DataMember]
public bool IsSelected { get; set; }
}
}
Regards,
Sulagna