Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2010
    Location
    Mumbai,India
    Posts
    25

    Lightbulb Radio Button help

    Need help!!!

    I want to use Radio Button.
    Each radio button should show their own Textblox or anything(e.g. <telerikInput:RadListPicker>) beneath.

    If i click on other radio button, the first texblox should hide and on that place the respective textblox should show up.

    How can i do this stuff? Help

  2. #2
    Regular Contributor
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    298

    Re: Radio Button help

    Quote Originally Posted by shintu View Post
    If i click on other radio button, the first texblox should hide and on that place the respective textblox should show up.
    Hello,

    I'm unable to understand this part, maybe drawing it would make it easy for us to help you.

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    686

    Re: Radio Button help

    if your using telerik components then i suggest you use ToggleButton as a radio button type
    you can group several of them under telerikPrimitives:RadWrapPanel so only one is checked at a time
    then simply listen to the clicks of the ToggleButton in the xaml by registering to their Click method as such Click="OnRadioButtonClickedChanged"
    then in the cs file add that method as such:
    private void OnRadioButtonClickedChanged(object sender, RoutedEventArgs e)
    {
    ToggleButton button = sender as ToggleButton;
    if (button.IsChecked == false)
    {
    this.processingChecked = false;
    button.IsChecked = true;
    return;
    }
    Panel parent = ElementTreeHelper.FindVisualAncestor<Panel>(button);

    foreach (ToggleButton b in parent.Children)
    {
    if (b == button)
    {
    continue;
    }

    b.IsChecked = false;
    }
    /* your code here*/
    }

    then you can do whatever you want in that method such as hiding other components by setting their visible property to false.
    Last edited by shai.i; 2013-05-07 at 20:57.

Similar Threads

  1. click on button and radio button
    By videoFx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2009-10-22, 23:29
  2. Radio Button
    By ASP-NewBie in forum Symbian
    Replies: 3
    Last Post: 2008-06-04, 11:26
  3. Option Button/radio button syntax...
    By lalitjadiya in forum Symbian
    Replies: 4
    Last Post: 2008-04-10, 14:52
  4. radio button
    By sanjaychavada in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-10-04, 08:54
  5. radio button
    By sanjaychavada in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-08-08, 06:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×