RadioButtonList Control

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • axapta

    RadioButtonList Control

    How can I programmaticall y change the selected item within the above
    control. I only have 2 items within it and I want to set the default
    (programmatical ly) to item 1.
    I've tried rdselector.item s(1).selectedva lue = true (or something along
    those lines) but the item selected does not change. I've tried 0 as well.

    TIA

  • Cor Ligthert[MVP]

    #2
    Re: RadioButtonList Control

    Axapta,

    In fact the radio button are almost useless without setting them in pairs in
    a groupbox.
    (Or you should only have two)

    If you select then one, then the other is changed automaticly

    For some it is a strange behaviour that if you use data binding, you have
    only to bind one.

    Cor

    "axapta" <jas.jackie@gma il.comschreef in bericht
    news:691681EF-9081-4B58-B5B2-C028223879AD@mi crosoft.com...
    How can I programmaticall y change the selected item within the above
    control. I only have 2 items within it and I want to set the default
    (programmatical ly) to item 1.
    I've tried rdselector.item s(1).selectedva lue = true (or something along
    those lines) but the item selected does not change. I've tried 0 as well.
    >
    TIA

    Comment

    • axapta

      #3
      Re: RadioButtonList Control

      Hi Cor,
      I don't quite understand what you are saying in relation to my problem.

      I have a radiobuttonlist - 2 items. The first item is defaulted, however
      the user is able to choose the 2nd item if they want. I have a button which
      clears all the controls on my form (text boxes, DDL's). I want the
      radiobuttoblist to be reset (when this button is clicked) to item1 if it is
      set to item2.

      Thanks

      "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
      news:29716BB1-C861-4EB4-869E-289D769FB3D1@mi crosoft.com...
      Axapta,
      >
      In fact the radio button are almost useless without setting them in pairs
      in a groupbox.
      (Or you should only have two)
      >
      If you select then one, then the other is changed automaticly
      >
      For some it is a strange behaviour that if you use data binding, you have
      only to bind one.
      >
      Cor
      >
      "axapta" <jas.jackie@gma il.comschreef in bericht
      news:691681EF-9081-4B58-B5B2-C028223879AD@mi crosoft.com...
      >How can I programmaticall y change the selected item within the above
      >control. I only have 2 items within it and I want to set the default
      >(programmatica lly) to item 1.
      >I've tried rdselector.item s(1).selectedva lue = true (or something along
      >those lines) but the item selected does not change. I've tried 0 as
      >well.
      >>
      >TIA
      >

      Comment

      • Cor Ligthert[MVP]

        #4
        Re: RadioButtonList Control

        If you set 1 then 2 is reset, that is automaticly and vice versa the same.

        Cor

        "axapta" <jas.jackie@gma il.comschreef in bericht
        news:BC5F4E95-B53C-4FE5-A26D-193A6426D6A2@mi crosoft.com...
        Hi Cor,
        I don't quite understand what you are saying in relation to my problem.
        >
        I have a radiobuttonlist - 2 items. The first item is defaulted, however
        the user is able to choose the 2nd item if they want. I have a button
        which clears all the controls on my form (text boxes, DDL's). I want the
        radiobuttoblist to be reset (when this button is clicked) to item1 if it
        is set to item2.
        >
        Thanks
        >
        "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
        news:29716BB1-C861-4EB4-869E-289D769FB3D1@mi crosoft.com...
        >Axapta,
        >>
        >In fact the radio button are almost useless without setting them in pairs
        >in a groupbox.
        >(Or you should only have two)
        >>
        >If you select then one, then the other is changed automaticly
        >>
        >For some it is a strange behaviour that if you use data binding, you have
        >only to bind one.
        >>
        >Cor
        >>
        >"axapta" <jas.jackie@gma il.comschreef in bericht
        >news:691681E F-9081-4B58-B5B2-C028223879AD@mi crosoft.com...
        >>How can I programmaticall y change the selected item within the above
        >>control. I only have 2 items within it and I want to set the default
        >>(programmatic ally) to item 1.
        >>I've tried rdselector.item s(1).selectedva lue = true (or something along
        >>those lines) but the item selected does not change. I've tried 0 as
        >>well.
        >>>
        >>TIA
        >>
        >

        Comment

        • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

          #5
          RE: RadioButtonList Control

          What is a RadioButtonList ? I don't have such a control. As Cor says, you
          would normally add radio buttons to a panel or other such container to make
          your own Radio Button List.

          Is this a custom control you got from somewhere, or are you refering to a
          CheckedListBox?

          "axapta" wrote:
          How can I programmaticall y change the selected item within the above
          control. I only have 2 items within it and I want to set the default
          (programmatical ly) to item 1.
          I've tried rdselector.item s(1).selectedva lue = true (or something along
          those lines) but the item selected does not change. I've tried 0 as well.
          >
          TIA
          >

          Comment

          Working...