Get RadMenuComboItem value from parent

2 posts, 0 answers
  1. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 23 Oct 2012 Link to this post

    I have a winforms app that has a main page on tha page is a radmenu item with a RadMenuComboItem on it.  Hte only thing else on the screen in a panel where the user controls are loaded into.  What I am trying to do is have it set up so the user can select a client from the RadMenuComboItem, and then all the control that get loaded into the panel will use the selected client to load the data on the screen.  and then when the user changes the client it would reload the the information on what ever control is loaded in the panel?
    Would it be better to pass the value on load of the control or have the control access teh parent?  And how can the child get teh slected value from the RadMenuComboItem on the parent
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 23 Jan 2013 Link to this post

    Hi,

    I suppose you want to get the SelectedValue from the RadMenuComboItem. Try the following code snippet.

    C#:
    string s = RadMenuComboItem1.ComboBoxElement.SelectedValue.ToString();

    Hope this helps.

    Regards,
    Princy.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top