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

RadTextBox Focus Inside the RadGrid in RadWindow

0 Answers 64 Views
Window
This is a migrated thread and some comments may be shown as answers.
AJMALKHAN
Top achievements
Rank 1
AJMALKHAN asked on 11 May 2016, 11:44 AM

Dear All,

      In  My Application I am using RadGrid Inside the RadWindow. In RadGrid i have used RadTextBox under Item Template. My Requirement is in my form when i will click the button radwindow will be displayed. But the actual problem is i cant set the focus inside the RadTextBox. Because RadGrid was located inside the RadWindow. I have tried the following code. But it doesnt help. I am looking for your valuable help & suggestions.

  private void FocusOriginalRow(short index)
        {
            foreach (GridDataItem gridItem in rGrdItemDet.Items)
            {
                if (gridItem.ItemIndex == Convert.ToInt32(index))
                {
                    gridItem.FindControl("txtSPCS").Focus();
                    return;
                }
            }
        }

No answers yet. Maybe you can help?

Tags
Window
Asked by
AJMALKHAN
Top achievements
Rank 1
Share this question
or