This is a migrated thread and some comments may be shown as answers.

TabIndex doesn't work when RadTreeView in RadTabStrip PageView

1 Answer 152 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Andrew Zhao
Top achievements
Rank 1
Andrew Zhao asked on 03 Jun 2010, 07:32 PM
I have a RadTreeView placed in a PageView of RadTabStrip and tried to support keyboard access, but the TreeView won't be on focus when pressing Tab key. The TreeView is populated by datasource in DataBind. I want to focus on the first checkbox in the tree. Please advise.
<telerik:RadPageView ID="MCCCodePageView" runat="server" CssClass="tabpageview">  
<div style="margin:10px">  
   <div class="helpmodtitle">  
      <asp:Label ID="MCCCodePageViewHeader" runat="server" ></asp:Label> 
      <href="#"><img alt="Help" border="0" src="../images/helpicon.png"/></a> 
   </div> 
   <telerik:RadTreeView ID="TransCatTree" runat="server" 
    Width="95%" 
    Height="300" 
    CheckBoxes="true" 
    TriStateCheckBoxes="true" 
    CheckChildNodes="true" 
    BackColor="White"      
    Skin="Outlook" 
    BorderWidth="1px" 
    BorderColor="#94A7B5"      
    ShowLineImages="false" 
    MultipleSelect="false" 
    TabIndex="1" 
    AccessKey="W" 
    OnClientNodeChecked="TransCatTree_ClientNodeChecked">  
   </telerik:RadTreeView> 
</div> 
</telerik:RadPageView> 
The property TriStateCheckBoxes set True seems cause the issue not getting onFocus. If set as false, TreeView get focus on tab. How to enable TriStateCheckBoxes and get tab focus?

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 08 Jun 2010, 02:23 PM
Hello Andrew Zhao,

The problem of focusing the first checkbox when TriStateCheckBoxes=true exists because the browser doesn't have native support for tristate checkboxes (they are not rendered as inputs). That's why this will be - no, we don't support that kind of scenario.

About the entire TreeView not getting focus on tab:
- This doesn't reproduce the issue. TreeView gets focus (but not on the first checkbox - it focuses the first node) and keyboard support is available as usual.

Hope this is helpful for you!


Sincerely yours,
Nikolay Tsenkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Andrew Zhao
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or