Latest build 2010.1.319.1030 issue

3 posts, 1 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 24 Mar 2010 Link to this post

    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. Answer
    Milan
    Admin
    Milan avatar
    1989 posts

    Posted 25 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 25 Mar 2010 Link to this post

    The workaround works well.
    Thank you
Back to Top