Group panel drag-and-drop broken

8 posts, 0 answers
  1. Brian Lam
    Brian Lam avatar
    28 posts
    Member since:
    Apr 2010

    Posted 11 Aug 2011 Link to this post

    If the RadGridView is in a RadWindow and its theme is set on the Loaded event, you can no longer drag-and-drop the group panel cells (i.e. to reorder them). I'm able to reproduce this bug in both versions 2011.1.405.1040 and Q2 2011. Here's some sample code to reproduce the problem:

    public partial class MainPage : UserControl
    {
        private RadWindow _window;
        private RadGridView _gridView;
     
        public MainPage()
        {
            InitializeComponent();
     
            _gridView = new RadGridView()
            {
                ItemsSource = Enumerable.Range(1, 100)
            };
            _gridView.Loaded += GridView_Loaded;
     
            _window = new RadWindow()
            {
                Content = _gridView
            };
            _window.Show();
        }
     
        void GridView_Loaded(object sender, RoutedEventArgs e)
        {
            StyleManager.SetTheme(_gridView, new Office_BlueTheme());
        }
    }
  2. Brian Lam
    Brian Lam avatar
    28 posts
    Member since:
    Apr 2010

    Posted 16 Aug 2011 Link to this post

    Any update on this?
  3. DevCraft banner
  4. Vera
    Admin
    Vera avatar
    263 posts

    Posted 17 Aug 2011 Link to this post

    Hi Brian Lam,

    You can set the RadGridView theme earlier as setting it in the Loaded event is a bit late.
    See the code bellow.

    public MainPage()
            {
                 
                InitializeComponent();
      
                _gridView = new RadGridView()
                {
                    ItemsSource = Player.GetPlayers()
                };
      
                StyleManager.SetTheme(_gridView, new Office_BlueTheme());
      
                _window = new RadWindow()
                {
                    Content = _gridView
                };
                _window.Show();
            }

     Regards,
    Vera
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
  5. Brian Lam
    Brian Lam avatar
    28 posts
    Member since:
    Apr 2010

    Posted 17 Aug 2011 Link to this post

    Hi Vera,

    Setting the theme earlier won't work for my application because we have a user preference that isn't loaded until later in the control's lifecycle which tells us what theme to use.
  6. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 23 Aug 2011 Link to this post

    Hello Brian Lam,

     We have investigated this scenario and it seems that this is bug from our side. I have logged this in our PITS system where you can track its progress. The fix will be included in our next internal build (next Monday).

    Please excuse us for the inconvenience caused.

    P.S. I have updated your telerik points accordingly.

    Greetings,
    Tsvyatko
    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 >>

  7. Rachana
    Rachana avatar
    18 posts
    Member since:
    Jul 2011

    Posted 13 Apr 2012 Link to this post

    Hi telerik team,

    Is it possible to darg and drop the groups in rad gridview?if it is possible, how?
    i have written "OnGroupsChanging" Event..but wtill help less it is

     

  8. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 13 Apr 2012 Link to this post

    Hello Rachana,

    RadGridView does not offer such functionality out-of-the-box. ( dragging groups ).

    Kind regards,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  9. Rachana
    Rachana avatar
    18 posts
    Member since:
    Jul 2011

    Posted 13 Apr 2012 Link to this post

    Hello pavel Pavlov,

    Thanq for your fast response, you saved my time...
Back to Top
DevCraft banner