New Message on dotNET User Group Hyd

check / uncheck radio button in grid

Reply
  Reply to Sender   Recommend Message 1 in Discussion
From: teja_434

hi arian,
add the below js code snippet to onclick event of the radio button

rdTemp.Attributes.Add("onClick","selectOne(this)");

...hope this works.


function selectOne(strControl)
{
var chkObj;
for(i=0;i<document.forms[0].elements.length;i++)
{
chkObj = document.forms[0].elements[i];
if(chkObj.type=='radio' && chkObj.id!=
strControl.id)
{
chkObj.checked=false;
}
}
}

bye
Tejeshwer




-----Original Message-----
From: arian_parrot [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 09, 2005 5:21 PM
To: dotNET User Group Hyd
Subject: Re: check / uncheck radio buton in grid


-----------------------------------------------------------

New Message on dotNET User Group Hyd

-----------------------------------------------------------
From: arian_parrot
Message 3 in Discussion


Thnx friend.....
But my requirement is something different...
i put radiobutton as a TEMPLATE COLUMN in the grid and at RUNTIME i am able
to select all the radio buttons in SINGLE column....can't i be able to
select only one RADIOBUTTON...??? i believe i can...

PLS post me back the code snippet if available..or the link...

waiting for ur reply.....



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your
E-mail Settings.
http://groups.msn.com/dotnetusergroupHyd/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On
the pre-addressed e-mail message that opens, simply click "Send". Your
e-mail address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

View other groups in this category.

Click here
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to