Click here to Skip to main content
15,905,238 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: problem with cross-domain silverlight and WCF Pin
Pete O'Hanlon29-Mar-11 23:33
mvePete O'Hanlon29-Mar-11 23:33 
Questionusercontrol - silverlight 4.0 Pin
arkiboys29-Mar-11 5:04
arkiboys29-Mar-11 5:04 
AnswerRe: usercontrol - silverlight 4.0 Pin
Yanshof29-Mar-11 5:15
Yanshof29-Mar-11 5:15 
AnswerRe: usercontrol - silverlight 4.0 Pin
Mycroft Holmes29-Mar-11 13:04
professionalMycroft Holmes29-Mar-11 13:04 
GeneralRe: usercontrol - silverlight 4.0 Pin
arkiboys30-Mar-11 4:39
arkiboys30-Mar-11 4:39 
GeneralRe: usercontrol - silverlight 4.0 Pin
Mycroft Holmes30-Mar-11 14:13
professionalMycroft Holmes30-Mar-11 14:13 
GeneralRe: usercontrol - silverlight 4.0 [modified] Pin
arkiboys30-Mar-11 18:33
arkiboys30-Mar-11 18:33 
QuestionChange the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Vimalsoft(Pty) Ltd29-Mar-11 4:28
professionalVimalsoft(Pty) Ltd29-Mar-11 4:28 
Good Evening

I have a Datagrid and i selectedChange event of the Datagrid, i show a child wind and i bind the textbox controls of the child window from the Parent Window which has a datagrid. Now my problem is that there is a Combobox on the Child window, onbviously this combobox is binded after the child window has opened. The data is not Static , its coming from the DB. What i want is to set the selected item from the parent. This is what i am doing

private void grdkids_SelectionChanged(object sender,  Telerik.Windows.Controls.SelectionChangeEventArgs e)
      {
          //kid
              KidsViewUpdateDetails KidsDetails = new KidsViewUpdateDetails();
 
 
              KidsModelExtended model = (KidsModelExtended)this.grdkids.SelectedItem;
               
              KidsDetails.txtstudentnumber.Text = model.sStudentNumber;
           
              KidsDetails.txtkidname.Text = model.sKidName;
              KidsDetails.txtkidlastname.Text = model.sKidLastname;
              KidsDetails.txtgrade.Text = model.sKidGrade;
              KidsDetails.txtclass.Text = model.skidclass;
              KidsDetails.ddlallergies.Text = model.sAllergyName;
              KidsDetails.ddlschool.Text = model.sSchoolName;
              GenericMethods.GenericMethods.SetCookie("kidId", model.iKidid.ToString());
              KidsDetails.Show();
         
      } 


in this lines

KidsDetails.ddlallergies.Text = model.sAllergyName;
  KidsDetails.ddlschool.Text = model.sSchoolName;



i am trying set the selected item to be that. but when the Child load , there Combobox remain unselected

This is the declaration of the Combobox

<telerik:RadComboBox HorizontalAlignment="Left"  DisplayMemberPath="sAllergyName" SelectedValuePath="{Binding iAllergyID}" Margin="106,226,0,0" Name="ddlallergies" VerticalAlignment="Top" Width="142" Height="22">


Thanks
Vuyiswa Maseko,

Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

AnswerRe: Change the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Mycroft Holmes29-Mar-11 13:12
professionalMycroft Holmes29-Mar-11 13:12 
GeneralRe: Change the Seleted Item of a Combobox in a Child window from a Parent Window Pin
Vimalsoft(Pty) Ltd29-Mar-11 19:18
professionalVimalsoft(Pty) Ltd29-Mar-11 19:18 
QuestionWPF Windows refusing to open from Office Ribbon Pin
vikas bhandari28-Mar-11 5:06
vikas bhandari28-Mar-11 5:06 
AnswerRe: WPF Windows refusing to open from Office Ribbon Pin
SledgeHammer0128-Mar-11 6:22
SledgeHammer0128-Mar-11 6:22 
GeneralRe: WPF Windows refusing to open from Office Ribbon Pin
vikas bhandari28-Mar-11 8:04
vikas bhandari28-Mar-11 8:04 
GeneralRe: WPF Windows refusing to open from Office Ribbon Pin
Pete O'Hanlon28-Mar-11 8:39
mvePete O'Hanlon28-Mar-11 8:39 
QuestionThe Property 'Content' is set more than once - I cant see were I am doing this Pin
Paul Harsent25-Mar-11 2:08
Paul Harsent25-Mar-11 2:08 
AnswerRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Pete O'Hanlon25-Mar-11 2:16
mvePete O'Hanlon25-Mar-11 2:16 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Paul Harsent25-Mar-11 2:24
Paul Harsent25-Mar-11 2:24 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Ian Shlasko25-Mar-11 2:44
Ian Shlasko25-Mar-11 2:44 
GeneralRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Pete O'Hanlon25-Mar-11 2:56
mvePete O'Hanlon25-Mar-11 2:56 
AnswerRe: The Property 'Content' is set more than once - I cant see were I am doing this Pin
Abhinav S26-Mar-11 6:20
Abhinav S26-Mar-11 6:20 
QuestionWCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? [modified] Pin
devvvy24-Mar-11 22:16
devvvy24-Mar-11 22:16 
AnswerRe: WCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? Pin
SledgeHammer0125-Mar-11 11:02
SledgeHammer0125-Mar-11 11:02 
GeneralRe: WCF: Message Security with a User Name Client - how to retrieve username+pwd from server side on a per request basis? Pin
devvvy27-Mar-11 21:57
devvvy27-Mar-11 21:57 
QuestionWrapPanel Bound To Collection Pin
Kevin Marois24-Mar-11 12:09
professionalKevin Marois24-Mar-11 12:09 
AnswerRe: WrapPanel Bound To Collection Pin
Mycroft Holmes24-Mar-11 12:46
professionalMycroft Holmes24-Mar-11 12:46 

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.