In my radgrid when I click a row it fires the server side event OnSelectedIndexChanged. However, I am losing focus after postback and the arrow keys stop working to navigate up/down in the grid. As a work around I am setting the focus to a LinkButton control in the last selected row which gives me arrow key control back, but it does highlight the LinkButton which looks odd.
protected void Page_PreRender(object sender, EventArgs e){ rgOrderItem.SelectedItems[0].FindControl("lbtnPartNumber").Focus();}
How can I get focus on the RadGrid where the arrow keys will work but not focus on a control in the current row? I have tried focusing on labels, but arrow keys don't work I assume because labels don't except keyboard input. I have also tried the following:
// 1.rgOrderItem.Focus();// 2.rgOrderItem.MasterTableView.Focus();// 3.rgOrderItem.Parent.Focus();//4.rgOrderItem.MasterTableView.Parent.Focus();//5.rgOrderItem.SelectedItems[0].Focus();//6.rgOrderItem.SelectedItems[0].Parent.Focus();//7.rgOrderItem.SelectedItems[0].Parent.Parent.Focus();
I notice if I click on whitespace inside the grid and below the last row, my focus seems to be where it needs to be and my arrow keys work without anything selected in a grid row, but I can't figure out how to programmatical target this area. Please help. Thanks.
