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

Rad gridview tab index

1 Answer 9 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Narsareddy
Top achievements
Rank 1
Narsareddy asked on 31 Aug 2013, 06:56 AM
How to set tab index rad grid view items?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 04 Sep 2013, 12:00 PM
Hi Narsareddy,

If you are trying to set tab index for the items in specific column try the following:
ASPX:
<telerik:GridNumericColumn DataField="EmployeeID" DataType="System.Int16"  NumericType="Number"  HeaderText="EmployeeID"  UniqueName="EmployeeID">
</telerik:GridNumericColumn>

C#:
protected void grdEmail_PreRender(object sender, EventArgs e)
   {
       Int16 i=1;
       foreach (GridColumn col in grdEmail.Columns)
       {
            if (col is GridNumericColumn)
           {
               foreach (GridEditableItem dataItem in grdEmail.MasterTableView.Items)
               {
                   (dataItem[col.UniqueName].Controls[0] as RadNumericTextBox).TabIndex = i;
               }
           }
           i++;
       }
   }


Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
WebParts for SharePoint
Asked by
Narsareddy
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or