Click here to Skip to main content
14,866,895 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF: DataGridCheckboxColumn when one checkbox is checked, check another checkbox in same row Pin
Mark McArdle6-Feb-17 3:04
MemberMark McArdle6-Feb-17 3:04 
AnswerRe: WPF: DataGridCheckboxColumn when one checkbox is checked, check another checkbox in same row Pin
Richard Deeming6-Feb-17 7:55
mveRichard Deeming6-Feb-17 7:55 
PraiseRe: WPF: DataGridCheckboxColumn when one checkbox is checked, check another checkbox in same row Pin
Mark McArdle7-Feb-17 2:07
MemberMark McArdle7-Feb-17 2:07 
QuestionStyle User Control In Another Assembly Pin
Kevin Marois2-Feb-17 6:54
professionalKevin Marois2-Feb-17 6:54 
AnswerRe: Style User Control In Another Assembly Pin
Pete O'Hanlon2-Feb-17 7:12
mvePete O'Hanlon2-Feb-17 7:12 
GeneralRe: Style User Control In Another Assembly Pin
Kevin Marois2-Feb-17 7:13
professionalKevin Marois2-Feb-17 7:13 
GeneralRe: Style User Control In Another Assembly Pin
Kevin Marois2-Feb-17 7:50
professionalKevin Marois2-Feb-17 7:50 
QuestionTelerik GridViewComboBoxColumn Pin
eddieangel25-Jan-17 12:29
Membereddieangel25-Jan-17 12:29 
I realize that this is not a Telerik forum but I also poured through their forums to no avail. Long story short, I am using NHibernate to hydrate my viewmodels and exposing complex objects with their related objects to my view. The issue is that in my grid I have a combobox column that has a collection of objects from the viewmodel, the selectedvalue of which will update the object of the selected item. When I change the combobox everything is great, everything is talking back and forth, all is well. But when I close the control and reopen it, it does not select any value for the column.

All code is cut for brevity:

View:
<telerik:GridViewComboBoxColumn x:Name="Client"
                                  ItemsSource="{Binding Clients}"
                                  DataMemberBinding="{Binding Client}"
                                  DisplayMemberPath="Name"
                                  SelectedValueMemberPath=""
                                  Header="Client"
                                  Width="125" />


ViewModel:
public ObservableCollection<Client> Clients { get; private set;}


Entity:
public class Claim : Entity<int>
    {
        public virtual Client Client { get; set; }
    }


NHibernate Mapping
public ClaimMap()
        {
            Table("Claim");
            LazyLoad();
            Id(x => x.Id).GeneratedBy.Identity().Column("id");
            References(x => x.Client).Column("clientId").Not.Nullable();
        }
    }
}


I am sure I could just expose the id values on the Claim object and wire it up that way but it really is swimming against the current of NHibernate to do so.

Thoughts?

Cheers, --EA
AnswerRe: Telerik GridViewComboBoxColumn Pin
Graeme_Grant28-Jan-17 2:23
professionalGraeme_Grant28-Jan-17 2:23 
QuestionDataGrid DataGridComboBoxColumn Enum Descriptions Pin
Kevin Marois24-Jan-17 6:22
professionalKevin Marois24-Jan-17 6:22 
AnswerRe: DataGrid DataGridComboBoxColumn Enum Descriptions Pin
Afzaal Ahmad Zeeshan24-Jan-17 6:46
mveAfzaal Ahmad Zeeshan24-Jan-17 6:46 
QuestionWPF DataGrid Extended Pin
Kevin Marois23-Jan-17 10:00
professionalKevin Marois23-Jan-17 10:00 
AnswerRe: WPF DataGrid Extended Pin
Richard Deeming23-Jan-17 10:25
mveRichard Deeming23-Jan-17 10:25 
GeneralRe: WPF DataGrid Extended Pin
Kevin Marois23-Jan-17 10:28
professionalKevin Marois23-Jan-17 10:28 
QuestionComboBox Restore Saved Item Pin
Kevin Marois20-Jan-17 10:06
professionalKevin Marois20-Jan-17 10:06 
AnswerRe: ComboBox Restore Saved Item Pin
Afzaal Ahmad Zeeshan20-Jan-17 11:20
mveAfzaal Ahmad Zeeshan20-Jan-17 11:20 
AnswerRe: ComboBox Restore Saved Item Pin
Mycroft Holmes20-Jan-17 11:54
professionalMycroft Holmes20-Jan-17 11:54 
GeneralRe: ComboBox Restore Saved Item Pin
Kevin Marois20-Jan-17 11:58
professionalKevin Marois20-Jan-17 11:58 
GeneralRe: ComboBox Restore Saved Item Pin
Mycroft Holmes20-Jan-17 14:14
professionalMycroft Holmes20-Jan-17 14:14 
QuestionEnumDescriptionConverter Exception Pin
Kevin Marois20-Jan-17 9:55
professionalKevin Marois20-Jan-17 9:55 
AnswerRe: EnumDescriptionConverter Exception Pin
Afzaal Ahmad Zeeshan20-Jan-17 11:38
mveAfzaal Ahmad Zeeshan20-Jan-17 11:38 
GeneralRe: EnumDescriptionConverter Exception Pin
Kevin Marois20-Jan-17 11:38
professionalKevin Marois20-Jan-17 11:38 
Questionc# WPF MVVM accesing a view with from another view Pin
Member 1288059514-Jan-17 21:56
MemberMember 1288059514-Jan-17 21:56 
AnswerRe: c# WPF MVVM accesing a view with from another view Pin
Pete O'Hanlon15-Jan-17 21:46
mvePete O'Hanlon15-Jan-17 21:46 
GeneralRe: c# WPF MVVM accesing a view with from another view Pin
Member 1288059516-Jan-17 8:05
MemberMember 1288059516-Jan-17 8:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.