c# - Silverlight Combobox Binding to Element -


i have silverlight telerik radcombobox. designing master detail page.

in grid have list of people - 1 of columns in grid salutation. when click on item in grid textboxes below fill according binding.

but combobox wondering if can bind this.

 selecteditem="{binding elementname=persongrid, path=selecteditem.salutationlookupvalue, mode=twoway}" 

im guessing cannot way. way im thinking need bind selecteditem selectedsalutation , set when selected item set grid..

    public person selectedpersonresult     {         { return _selectedpersonresult; }         set         {             setobject(ref _selectedpersonresult, value, "selectedpersonresult");             if (_selectedsalutationresult != null)             {                 selectedsalutation = salutationlist.where(x => x.value == selectedpersonresult.salutationlookupvalue).firstordefault();             }         }     } 

again id prefer first way (within xaml) im guessing doing second way way?

if combobox of yours behaves standard 1 first method should work, should not bind selecteditem, right property selectedvalue. (does combobox have such property?)


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -