[CLOSED] Radio .Checked and .Value order dependency issue

  1. #1

    [CLOSED] Radio .Checked and .Value order dependency issue

    After messing around for a while, I realised that the .Checked and .Value attributes seem to have an order dependency. If .Checked is not last, it has no effect. The following will not show Item 2 as checked.

                Html.X().RadioGroup()
                    .ID("RadioGroup4")
                    .FieldLabel("Multi-Column(Vertical)")
                    .ColumnsNumber(3)
                    .Vertical(true)
                    .Items(
                        Html.X().Radio().ID("Radio17").BoxLabel("Item 1").Value("AA"),
                        Html.X().Radio().ID("Radio18").BoxLabel("Item 2").Checked(true).Value("BB"),
                        Html.X().Radio().ID("Radio19").BoxLabel("Item 3").Value("CC"),
                        Html.X().Radio().ID("Radio20").BoxLabel("Item 4").Value("DD"),
                        Html.X().Radio().ID("Radio21").BoxLabel("Item 5").Value("EE")
                    )
    Last edited by Daniil; Dec 10, 2013 at 11:48 AM. Reason: [CLOSED]
  2. #2
    Hi @ATLAS,

    I guess you need to use InputValue instead of Value. I don't think a Checkbox's Value should be used at all.

Similar Threads

  1. MVC3 with Radio checked
    By zhdl in forum 2.x Help
    Replies: 1
    Last Post: Sep 11, 2012, 2:01 PM
  2. [CLOSED] Javascript dependency problem
    By anup in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 02, 2012, 4:26 PM
  3. Replies: 14
    Last Post: Mar 02, 2012, 9:22 AM
  4. Retrieve checked radio from Radio Group
    By ttharaka2002 in forum 1.x Help
    Replies: 0
    Last Post: Mar 25, 2010, 2:15 AM
  5. [CLOSED] radio group event order
    By alexp in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 25, 2009, 12:32 PM

Posting Permissions