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

RadGridView ignores first click on GridViewSelectColumn header

2 Answers 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Inseok
Top achievements
Rank 1
Inseok asked on 06 Sep 2011, 03:05 AM
Hi,
When I click the checkbox  on the GridViewSelectColumn's header, RadGridView ignores it at the first time.
Once RadGridView get the focus, this issue will be gone and never happen again until the page refreshed.
You can see this issue on Telerik demo site: http://demos.telerik.com/silverlight/#GridView/ColumnTypes

I couldn't figure out why, but some of my RadGridView didn't show this issue.
I just guess some bindings or event handlers are involved with this issue, some how.

Regards,
Inseok

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 08 Sep 2011, 01:34 PM
Hi Inseok,

 The reason for this behavior is the lack of focus on the grid, the focus does not goes to it. 
You should set the focus of the RadGridView when the data is loaded. You may set it like so:

Copy Code
 
private void ordersGrid_Loaded(object sender, RoutedEventArgs e)
        {
            (sender as RadGridView).Focus();
        }

Let me know how this works for you.

Kind regards,
Didie
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Inseok
Top achievements
Rank 1
answered on 08 Sep 2011, 02:14 PM
Hi Didie,
Okay, it works fine. Thanks.
I just hope you guys fix this issue, so that I don't have to copy&paste the code for every grid. ;)

Inseok
Tags
GridView
Asked by
Inseok
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Inseok
Top achievements
Rank 1
Share this question
or