Ask a Question related to ASP.NET General, Design and Development.
-
sramruttun #1
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
-
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... -
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... -
[PHP] Simple Selection Box
AAHH - stupid mistake - thanks! Guess I better re-read PHP-101 Thanks, Scott ----- Original Message ----- From: "Jay Blanchard"... -
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. ... -
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... -
Ravikanth[MVP] #2
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
less the same>-----Original Message-----
>hi
>
>I have 2 radiobuttonlists in my form both having more orbe removed from>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 shouldshould be removed from>RDLGroup2 and A1 should be added to it.
>Similarly, later if I select A5 in RDLGroup1, then A5should be added.>RDLGroup2 and the item that was previously 'absent'then it should be>That is, each time an item is selected in RDLGroup1,removed should be>removed from RDLGroup2 and the item that was previouslyto do that in the>added.
>So I set autopostback true for RDLGroup1, and added codethe postback has a>selectedindexchanged event of RDLGroup1. It works. Butexplain later) so that I>specific problem (it is not relevant here but I canjavascript. So my question is:>can't use this postback method. I'm left withradiobuttonlists in>How can I do the removal and additions of items in thelevel grouping for>javascript?
>
>
>Note: I'm using these 2 radiobutonlists to provide 2the 1st level>reports. So it's obvious that if I select one item forgrouping as well.>grouping I can't select it again for the 2nd levelto achieve the above>
>Any suggestions will be ok - probably some other method>functionality.
>
>
>.
>Ravikanth[MVP] Guest
-
sramruttun #3
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
>
>> less the same> >-----Original Message-----
> >hi
> >
> >I have 2 radiobuttonlists in my form both having more or> be removed from> >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> should be removed from> >RDLGroup2 and A1 should be added to it.
> >Similarly, later if I select A5 in RDLGroup1, then A5> should be added.> >RDLGroup2 and the item that was previously 'absent'> then it should be> >That is, each time an item is selected in RDLGroup1,> removed should be> >removed from RDLGroup2 and the item that was previously> to do that in the> >added.
> >So I set autopostback true for RDLGroup1, and added code> the postback has a> >selectedindexchanged event of RDLGroup1. It works. But> explain later) so that I> >specific problem (it is not relevant here but I can> javascript. So my question is:> >can't use this postback method. I'm left with> radiobuttonlists in> >How can I do the removal and additions of items in the> level grouping for> >javascript?
> >
> >
> >Note: I'm using these 2 radiobutonlists to provide 2> the 1st level> >reports. So it's obvious that if I select one item for> grouping as well.> >grouping I can't select it again for the 2nd level> to achieve the above> >
> >Any suggestions will be ok - probably some other method> >functionality.
> >
> >
> >.
> >
sramruttun Guest



Reply With Quote

