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

Latest build 2010.1.319.1030 issue

2 Answers 29 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marc Roussel
Top achievements
Rank 2
Marc Roussel asked on 24 Mar 2010, 07:44 PM
The first time the grid is loaded and I click on the header it triggered the SelectionChanged.  This is causing some trouble as it is not really a SelectionChanged.

Then the second time is ok.

Is there a workdaround ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 25 Mar 2010, 12:38 PM
Hi Marc Roussel,

We are aware of this issue and it will be fixed as soon as possible. The issue is related to the synchronization or CurrentItem and SelectedItem - when IsSynchronizedWithCurrentItem is true and the grid is sorted, the grid will attempt to synchronize its selected item with its current item and as a result a selection change is performed. 

To workaround this problem you can turn off the synchronization of CurrentItem and SelectedItem by setting IsSynchronizationWithCurrenITem to false.  The other possible workaround is to clear the current item when RadGridView is first initialized:

private bool gridInitialized = false;
  
// subscribe for DataLoaded event
void playersGrid_DataLoaded(object sender, EventArgs e)
{
    if (!gridInitialized)
        this.playersGrid.CurrentItem = null;
  
    this.gridInitialized = true;
}


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
Marc Roussel
Top achievements
Rank 2
answered on 25 Mar 2010, 03:11 PM
The workaround works well.
Thank you
Tags
GridView
Asked by
Marc Roussel
Top achievements
Rank 2
Answers by
Milan
Telerik team
Marc Roussel
Top achievements
Rank 2
Share this question
or