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

Tabbing on actionable links on RadGrid in readonly mode

2 Answers 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Himanshu
Top achievements
Rank 1
Himanshu asked on 18 Feb 2014, 12:31 PM
I have a RadGrid which contains readonly colums with readonly cells and some actionable links like image button link, checkbox. Now what is the requirements is that when i press tab then it must focus on actionable links means on image button, checkbox in a horizontal manner means row wise. But right now when i do focus it doesn't work properly. Sometimes it skips some links or move in a vertical manner. So i need any built in funtionality which is available by telerik for applying tabbing in readonly mode for telerik grid or is there any custom way by which we can achieve it. 

I have attached the screen shot of the grid so  that i will become more clear.

In the screen shot first it must get focus on "Add new third party commission" link then "Select all/Deselect all" checkbox then after tab it must set focus on first row's checkbox then image button of detail then move to copy button and then delete image button. After this it should set focus on next row's in the same way as above and same for other rows too.

Any thought on this will be helpful.

2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 18 Feb 2014, 12:46 PM
Hello,

You can also set tabindex manually in grid. 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            GridDataItem item = e.Item as GridDataItem;
            int currentPageeindex = RadGrid1.CurrentPageIndex * (e.Item.ItemIndex + 1);
            (item.FindControl("CheckBox1") as CheckBox).TabIndex = (short)currentPageeindex;
            (item.FindControl("Image1") as Image).TabIndex = (short)currentPageeindex;
        }
    }

<telerik:GridTemplateColumn>
                           <ItemTemplate>
                               <asp:CheckBox ID="CheckBox1" runat="server" />
                               <asp:Image ID="Image1" runat="server" />
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>

Let me know if any concern.

Thanks,
Jayesh Goyani
0
Himanshu
Top achievements
Rank 1
answered on 18 Feb 2014, 02:07 PM
Thanks a lot Jayesh.. It is working like a charm. :)
Tags
Grid
Asked by
Himanshu
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Himanshu
Top achievements
Rank 1
Share this question
or