hi
I have 2 radiobuttonlist s 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
selectedindexch anged 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 radiobuttonlist s 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. 2 1145
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 radiobuttonlist s in my form both having more or
less the samelistitems: 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 fromRDLGroup2 and A1 should be added to it. Similarly, later if I select A5 in RDLGroup1, then A5
should be removed fromRDLGroup2 and the item that was previously 'absent'
should be added.That is, each time an item is selected in RDLGroup1,
then it should beremoved from RDLGroup2 and the item that was previously
removed should beadded. So I set autopostback true for RDLGroup1, and added code
to do that in theselectedindexc hanged event of RDLGroup1. It works. But
the postback has aspecific problem (it is not relevant here but I can
explain later) so that Ican'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
radiobuttonlist s injavascript?
Note: I'm using these 2 radiobutonlists to provide 2
level grouping forreports. So it's obvious that if I select one item for
the 1st levelgrouping 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 abovefunctionalit y.
.
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]" <dv*********@ho tmail.com> wrote in message
news:09******** *************** *****@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 radiobuttonlist s in my form both having more or less the samelistitems: 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 fromRDLGroup2 and A1 should be added to it. Similarly, later if I select A5 in RDLGroup1, then A5 should be removed fromRDLGroup2 and the item that was previously 'absent' should be added.That is, each time an item is selected in RDLGroup1, then it should beremoved from RDLGroup2 and the item that was previously removed should beadded. So I set autopostback true for RDLGroup1, and added code to do that in theselectedindexc hanged event of RDLGroup1. It works. But the postback has aspecific problem (it is not relevant here but I can explain later) so that Ican'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 radiobuttonlist s injavascript?
Note: I'm using these 2 radiobutonlists to provide 2 level grouping forreports. So it's obvious that if I select one item for the 1st levelgrouping 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 abovefunctionalit y.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Martin Karlsson |
last post by:
Hi guys,
Does anyone know how I can restore a selection created with
createRange()?
The problem is that I have a function that opens a new window with
window.open() which of course makes the current window to lose focus
and drop the selection. The same happens if I display an alert
message.
|
by: lawrence |
last post by:
Is this the correct way to test for a method before I use it?
createRange() is, I believe, an IE only method.
function wrapSelectionInTag(selection, tag) {
if (document.selection.createRange) {
var range = document.selection.createRange();
if (range.parentElement() == element) range.text = '<' + tag +
'>' + range.text + '<\/' + tag + '>';
}
|
by: bob |
last post by:
I asked a question yesterday about how I would parse a
Word document using functions in some Interop.Word COM.
Some told me to run a macro in Word to see how it works.
Most of the code was...
Selection.Find.ClearFormatting
With Selection.Find
|
by: STeve |
last post by:
Hey guys,
I currently have a 100 page word document filled with various
"articles". These articles are delimited by the Style of the text
(IE. Heading 1 for the various titles) These articles will then be
converted into HTML and saved. I want to write a parser through
vb.net that uses the word object model and was wondering how this
could be achieved? The problem i am running into is that i can not
test whether the selected text is...
|
by: loga123 |
last post by:
I have an aspx page where I am creating "radiobuttonlists" dynamically
based on the result from a SQL query. "ID" property of these controls
is set dynamically.
Then...i have a "submit" button on my page which when clicked takes me
to another page.
I want to capture the user selections on the radiobuttonlists in my
previous page.
code looks like this.
| |
by: Svein Erik |
last post by:
C# asp.net 2.0.
I'm creating an online survey. I'm making a string array that's holding the
variables of the answers made in the radiobuttonlists that i create manually.
I need to make a method that loops through all the radiobuttonlists and puts
the selected answers in the string array that i've created. I guess this is
relatively easy, but I haven't figured it out..here's the code that I have
for now:
protected void...
|
by: vanditnagar |
last post by:
Hi,
I am facing the difficulty in the selecting a text on the browser . And highlighting the text.
I am using the window.getSelection() to get the object and after that i am using the range.getRangeAt(0).cloneContents() method for getting the copy of the document content my requirement is to get the exact html text . But when we are assigning the text into the innerHTML it complete the DOm structure i m not...
|
by: Venturini |
last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web searches for scripts and html and adapted them.
I need to know the principles of how to disable certain options based on other selections within the form. I have attached my script and html below to help.
For example of a customer selects (BASIC...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |