User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 403,407 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,654 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 690 | Replies: 2
Reply
Join Date: Nov 2006
Posts: 17
Reputation: santoo is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
santoo santoo is offline Offline
Newbie Poster

Access key for button and radiobuttonlist

  #1  
Mar 29th, 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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Location: Pennsylvania, USA
Posts: 6
Reputation: zAndrew is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
zAndrew zAndrew is offline Offline
Newbie Poster

Re: Access key for button and radiobuttonlist

  #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  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: Access key for button and radiobuttonlist

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 9:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC