RadTextBox Focus Inside the RadGrid in RadWindow

1 posts, 0 answers
  1. AJMALKHAN
    AJMALKHAN avatar
    1 posts
    Member since:
    May 2016

    Posted 11 May Link to this post

    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;
                    }
                }
            }

Back to Top