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

Group panel drag-and-drop broken

7 Answers 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brian Lam
Top achievements
Rank 1
Brian Lam asked on 11 Aug 2011, 04:08 PM
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());
    }
}

7 Answers, 1 is accepted

Sort by
0
Brian Lam
Top achievements
Rank 1
answered on 16 Aug 2011, 05:29 PM
Any update on this?
0
Vera
Telerik team
answered on 17 Aug 2011, 09:16 AM
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 >>
0
Brian Lam
Top achievements
Rank 1
answered on 17 Aug 2011, 02:22 PM
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.
0
Tsvyatko
Telerik team
answered on 23 Aug 2011, 11:44 AM
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 >>

0
Rachana
Top achievements
Rank 1
answered on 13 Apr 2012, 06:14 AM
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

 

0
Pavel Pavlov
Telerik team
answered on 13 Apr 2012, 09:42 AM
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 >>

0
Rachana
Top achievements
Rank 1
answered on 13 Apr 2012, 10:17 AM
Hello pavel Pavlov,

Thanq for your fast response, you saved my time...
Tags
GridView
Asked by
Brian Lam
Top achievements
Rank 1
Answers by
Brian Lam
Top achievements
Rank 1
Vera
Telerik team
Tsvyatko
Telerik team
Rachana
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or