I've gone through a few different examples and none of them have worked. I'm able to get the cell to highlight, but the keyboard focus is never on the cell, or in the grid for that matter.
http://www.telerik.com/help/silverlight/gridview-how-to-set-current-cell.html
http://www.telerik.com/community/forums/silverlight/gridview/focusing-item-in-radgridview.aspx
http://www.telerik.com/community/forums/silverlight/gridview/how-to-set-focus-on-given-cell.aspx
6 Answers, 1 is accepted
The information that you have found is just what you are looking for.
The reason why you cannot actually focus the GridViewCell is that your Silverlight Plugin is not focused at all. If you click anywhere inside your Silverlight application, then you may notice that the selected rows can be changed with the keyboard arrows.
This means that you need to focus System.Windows.Browser.HtmlPage.Plugin programmatic prior to focusing the GridViewCell as suggested here.
Please let me know in case this does not help.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
The grid population happens due to a search button click, so the plugin already has focus, and I wouldn't think it would have lost it at any time.
I have created a sample project on how to set a cell focus programmatic. Unfortunately I am not able to reproduce a situation when the cell is not focused.
May you please review the example and guide me on how I may get the behavior that you experience?
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Why does the dispatcher have to be used?
Going through the dispatcher ensures that the elements are already created (i.e. one visual pass has passed).
We may give you more detailed explanation for the particular case if you can send us a small running sample reproducing the mentioned behavior.
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>