Rad gridview tab index

2 posts, 0 answers
  1. Narsareddy
    Narsareddy avatar
    5 posts
    Member since:
    Jul 2013

    Posted 31 Aug 2013 Link to this post

    How to set tab index rad grid view items?
  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 04 Sep 2013 Link to this post

    Hi Narsareddy,

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

    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;

    Maria Ilieva
    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.
Back to Top