2 radiobuttonlists for selection

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 2 radiobuttonlists for selection

    hi

    I have 2 radiobuttonlists in my form both having more or less the same
    listitems:
    At Design time,
    RDLGroup1 (1st radiobuttonlist) has the foll. items:
    A1 A2 A3 A4 A5 (A1 is selected)

    RDLGroup2 (2nd radiobuttonlist) has the foll. items:
    A2 A3 A4 A5 (None is selected)

    So at first, if I select A2 in RDLGroup1, then A2 should be removed from
    RDLGroup2 and A1 should be added to it.
    Similarly, later if I select A5 in RDLGroup1, then A5 should be removed from
    RDLGroup2 and the item that was previously 'absent' should be added.
    That is, each time an item is selected in RDLGroup1, then it should be
    removed from RDLGroup2 and the item that was previously removed should be
    added.
    So I set autopostback true for RDLGroup1, and added code to do that in the
    selectedindexchanged event of RDLGroup1. It works. But the postback has a
    specific problem (it is not relevant here but I can explain later) so that I
    can't use this postback method. I'm left with javascript. So my question is:
    How can I do the removal and additions of items in the radiobuttonlists in
    javascript?


    Note: I'm using these 2 radiobutonlists to provide 2 level grouping for
    reports. So it's obvious that if I select one item for the 1st level
    grouping I can't select it again for the 2nd level grouping as well.

    Any suggestions will be ok - probably some other method to achieve the above
    functionality.


    sramruttun Guest

  2. Similar Questions and Discussions

    1. PHP selection list
      Can anyone tell how to get the selection value stored in the variable and use that selection to produce another selection list .... hope you...
    2. channel selection
      I have 3 editable fields (for the user to answer questions) at various markers in my Director file. When I go to the next marker the cursor is...
    3. [PHP] Simple Selection Box
      AAHH - stupid mistake - thanks! Guess I better re-read PHP-101 Thanks, Scott ----- Original Message ----- From: "Jay Blanchard"...
    4. Stroke around selection
      Hi, Comparing FW-MX with photoshop, How can i have stroke around selection? I have a selection and i need to put the stroke in another layer. ...
    5. Selection problem.
      How do you select hair in a portrait? Sometimes I want to add changes to a background and the hair is always problematic. Sometimes it looks like cut...
  3. #2

    Default 2 radiobuttonlists for selection

    Hi

    I think you have to user server side C# code to do this.
    With Javascript it is not possible.


    Ravikanth

    >-----Original Message-----
    >hi
    >
    >I have 2 radiobuttonlists in my form both having more or
    less the same
    >listitems:
    >At Design time,
    >RDLGroup1 (1st radiobuttonlist) has the foll. items:
    >A1 A2 A3 A4 A5 (A1 is selected)
    >
    >RDLGroup2 (2nd radiobuttonlist) has the foll. items:
    >A2 A3 A4 A5 (None is selected)
    >
    >So at first, if I select A2 in RDLGroup1, then A2 should
    be removed from
    >RDLGroup2 and A1 should be added to it.
    >Similarly, later if I select A5 in RDLGroup1, then A5
    should be removed from
    >RDLGroup2 and the item that was previously 'absent'
    should be added.
    >That is, each time an item is selected in RDLGroup1,
    then it should be
    >removed from RDLGroup2 and the item that was previously
    removed should be
    >added.
    >So I set autopostback true for RDLGroup1, and added code
    to do that in the
    >selectedindexchanged event of RDLGroup1. It works. But
    the postback has a
    >specific problem (it is not relevant here but I can
    explain later) so that I
    >can't use this postback method. I'm left with
    javascript. So my question is:
    >How can I do the removal and additions of items in the
    radiobuttonlists in
    >javascript?
    >
    >
    >Note: I'm using these 2 radiobutonlists to provide 2
    level grouping for
    >reports. So it's obvious that if I select one item for
    the 1st level
    >grouping I can't select it again for the 2nd level
    grouping as well.
    >
    >Any suggestions will be ok - probably some other method
    to achieve the above
    >functionality.
    >
    >
    >.
    >
    Ravikanth[MVP] Guest

  4. #3

    Default Re: 2 radiobuttonlists for selection

    thanks ravi bhai
    but I think whether it is C# or VB.NET, it is server side code. (I was able
    to do it using VB.NET).
    It's the postback which is a problem for me, that's why I opted for
    javascript.
    Is there some another method to do the 2 level grouping for reports?

    "Ravikanth[MVP]" <dvravikanth@hotmail.com> wrote in message
    news:09d301c35bf4$a44fb1e0$a301280a@phx.gbl...
    > Hi
    >
    > I think you have to user server side C# code to do this.
    > With Javascript it is not possible.
    >
    >
    > Ravikanth
    >
    >
    > >-----Original Message-----
    > >hi
    > >
    > >I have 2 radiobuttonlists in my form both having more or
    > less the same
    > >listitems:
    > >At Design time,
    > >RDLGroup1 (1st radiobuttonlist) has the foll. items:
    > >A1 A2 A3 A4 A5 (A1 is selected)
    > >
    > >RDLGroup2 (2nd radiobuttonlist) has the foll. items:
    > >A2 A3 A4 A5 (None is selected)
    > >
    > >So at first, if I select A2 in RDLGroup1, then A2 should
    > be removed from
    > >RDLGroup2 and A1 should be added to it.
    > >Similarly, later if I select A5 in RDLGroup1, then A5
    > should be removed from
    > >RDLGroup2 and the item that was previously 'absent'
    > should be added.
    > >That is, each time an item is selected in RDLGroup1,
    > then it should be
    > >removed from RDLGroup2 and the item that was previously
    > removed should be
    > >added.
    > >So I set autopostback true for RDLGroup1, and added code
    > to do that in the
    > >selectedindexchanged event of RDLGroup1. It works. But
    > the postback has a
    > >specific problem (it is not relevant here but I can
    > explain later) so that I
    > >can't use this postback method. I'm left with
    > javascript. So my question is:
    > >How can I do the removal and additions of items in the
    > radiobuttonlists in
    > >javascript?
    > >
    > >
    > >Note: I'm using these 2 radiobutonlists to provide 2
    > level grouping for
    > >reports. So it's obvious that if I select one item for
    > the 1st level
    > >grouping I can't select it again for the 2nd level
    > grouping as well.
    > >
    > >Any suggestions will be ok - probably some other method
    > to achieve the above
    > >functionality.
    > >
    > >
    > >.
    > >

    sramruttun Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139