Radio value

  1. #1

    Radio value

    Hello,

    I am adding components dynamically, but i cant find the radio value property.

    new Radiogroup(new Radio{ ID = "123"}));
    How do i set the value?

    Thanks
  2. #2

    RE: Radio value


    try this

    
    
    
    Coolite.Ext.Web.RadioGroup rg = new RadioGroup();
    
    
    rg.Items.Add(new Radio { ID = "123", Value = "setValue" });
  3. #3

    RE: Radio value

    Doesnt work, value is the value of the coolite object.

    If i set thru markup, it would be InputValue tag, but that isnt available in the code behind

    Thanks
  4. #4

    RE: Radio value

    Hi,

    Use Checked property
  5. #5

    RE: Radio value

    RadioGroup1.Items.Add(new Radio { ID = "Radio1", Checked = true });
    Geoffrey McGill
    Founder

Similar Threads

  1. Radio
    By babu in forum 2.x Help
    Replies: 0
    Last Post: May 02, 2012, 5:35 AM
  2. Retrieve checked radio from Radio Group
    By ttharaka2002 in forum 1.x Help
    Replies: 0
    Last Post: Mar 25, 2010, 2:15 AM
  3. [CLOSED] Dynamic Creation of Radio Buttons within Radio Group
    By Steve in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 04, 2009, 1:13 PM
  4. How to set and get Radio Value
    By wangzhuqing in forum 1.x Help
    Replies: 0
    Last Post: Jan 09, 2009, 7:41 AM
  5. Radio
    By heysol in forum 1.x Help
    Replies: 3
    Last Post: Jan 07, 2009, 5:55 PM

Posting Permissions