Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
I have a radiobutton list in my page in which html code is as follows
<div class="table_column_85R">
<asp:RadioButtonList ID="rblStatus" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"TabIndex="101" OnSelectedIndexChanged="rblStatus_SelectedIndexChanged" AutoPostBack="true">
  <asp:ListItem Text="Inprogress" Value="5" />
  <asp:ListItem Text="Extension" Value="3" />
  <asp:ListItem Text="Completion" Value="2" />
</asp:RadioButtonList>
</div>
 
here i need focus on selected radio button while I hit tab key .
Please help me to solve this
Posted 6-Dec-12 2:09am
CSR89508

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

select ur radio button and click property window:
 
property --> Accessibility--> tabindex
 
Set ur tabindex number...for example u set 1 means wen u enter tab button..tab button goes to radio button...
 
For ur code:
<div class="table_column_85R">
<asp:RadioButtonList ID="rblStatus" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"TabIndex="1" OnSelectedIndexChanged="rblStatus_SelectedIndexChanged" AutoPostBack="true">
  <asp:ListItem Text="Inprogress" Value="5" />
  <asp:ListItem Text="Extension" Value="3" />
  <asp:ListItem Text="Completion" Value="2" />
</asp:RadioButtonList>
</div>
 

u change tab index no is 1...tat's all..
if it works correctly mark this as a solution....
 
Happy coding...
  Permalink  
v3
Comments
Marcus Kramer at 6-Dec-12 14:18pm
   
Please avoid text speak in your posts. We are professionals here(or at least pretend to be) and the abbreviated words drive us old farts really crazy. Your keyboard does come with all the keys, does it not?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,631
1 Sergey Alexandrovich Kryukov 6,345
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100