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

CanUserSelect no longer works in 2010_1_0603

3 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark Oldytowski
Top achievements
Rank 1
Mark Oldytowski asked on 04 Jun 2010, 06:40 PM
The RadGridView CanUserSelect property no longer works as of WPF controls version 2010_1_0603. This problem is visible in your online demo in the "overview/selection" section.

-Mark

3 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 09 Jun 2010, 07:26 AM
Hi Mark Oldytowski,

Setting IsSynchronizedwithCurrentItem to false should resolve the problem.


Sincerely yours,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Mark Oldytowski
Top achievements
Rank 1
answered on 14 Jun 2010, 11:38 PM
This does fix the issue, but then the feature that selects the first item on the grid upon opening no longer works.
0
Milan
Telerik team
answered on 15 Jun 2010, 09:53 AM
Hello Mark Oldytowski,

In that case you should manually select the first item:

private bool isInitialized = false;
  
// subscribe to DataLoaded event
void gridView_DataLoaded(object sender, System.EventArgs e)
{
    if (!this.isInitialized)
    {
        this.gridView.SelectedItem = this.gridView.Items[0];
    }
  
    this.isInitialized = true;
}

We will try to resolve the original issue with Q2 2010 so that you will not have to use such custom code.

Regards,
Milan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Mark Oldytowski
Top achievements
Rank 1
Answers by
Milan
Telerik team
Mark Oldytowski
Top achievements
Rank 1
Share this question
or