Access key for button and radiobuttonlist

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2006
Posts: 17
Reputation: santoo is an unknown quantity at this point 
Solved Threads: 0
santoo santoo is offline Offline
Newbie Poster

Access key for button and radiobuttonlist

 
0
  #1
Mar 30th, 2008
HI,

I want to define short keys (access key) for button and radiobutton list,checkbutton list in my page.It is working fine for simple radio button and checkbox but it is not working for radiobuttonlist and checkbox list.
How to add access keys for Checkbox list and radiobutton list.


thanks.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 6
Reputation: zAndrew is an unknown quantity at this point 
Solved Threads: 0
zAndrew zAndrew is offline Offline
Newbie Poster

Re: Access key for button and radiobuttonlist

 
0
  #2
Mar 30th, 2008
Since CheckBoxList and RadioButtonList are group controls, you can only set an AccessKey for the group as far as I'm aware. In other words, you can set it for the list, but not for items within the list. Hope this helps explain.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 1,080
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Solved Threads: 68
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Access key for button and radiobuttonlist

 
0
  #3
Mar 31st, 2008
Detect the window.keycode event in javascript. If they hit the combination you wish, use javascript to "check" the box or radio button.

Here's a simple link for you. Detect the key codes pressed. If they hit alt and R, then check the correct box:

if (document.getElementById("radiobtnID")) document.getElementById("radiobtnID").checked = true;

Here's the link:

http://www.htmlgoodies.com/beyond/ja...le.php/3471141
I answer pm's.
I answer questions.
I answer quickly.
I answer.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC