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

Grouping Doesn't Works

13 Answers 173 Views
GridView
This is a migrated thread and some comments may be shown as answers.
dennis
Top achievements
Rank 1
dennis asked on 27 Apr 2010, 07:54 PM
Hi, i Have a gridview binded in code-behind to a list of entities, and the group panel is visible. but i cant drag the column header to the group panel. im missing something.???

btw im using it inside a elementhost.

13 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Apr 2010, 07:07 AM
Hi,

Do you have our latest service pack (Q1 2010 SP1)?

All the best,
Vlad
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
dennis
Top achievements
Rank 1
answered on 28 Apr 2010, 03:31 PM
HI, im using RadControls for WPF Trial Version: 2010.1 422 (Apr 22, 2010)
0
Tsvyatko
Telerik team
answered on 28 Apr 2010, 04:31 PM
Hi dennis,

Attached you will find sample demonstrating simple usage of the gridview within Element host.
Please check it and let me know if it helps in any.
If not, can you please send some additional information about the way data is bound to the gridview or any other specifics within the code behind.

Kind regards,
Tsvyatko
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
dennis
Top achievements
Rank 1
answered on 29 Apr 2010, 01:20 AM
Hi, The dll's that you had attached are newer than mine 2010.1.422.35 vs 2010.1.309.35. Why is not posted this version online?
0
Hristo
Telerik team
answered on 29 Apr 2010, 12:37 PM
Hello dennis,

The latest Q1 2010 SP1 is available for download under Your Account->Free Trails->RadControls for WPF. You can follow this link.

Greetings,
Hristo
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
ColinBlakey
Top achievements
Rank 2
answered on 21 Jul 2010, 09:32 PM
To the Telerik support team,

I've had a similar issue as Dennis but with two forms, of which the drag does not work on form2. To recreate this with your sample, I created a second form with a second user control (exactly the same as the first) and added a button to show form2. While the dragging behavior works on the first form it will not work on the second.

Thanks

Colin Blakey
0
dennis
Top achievements
Rank 1
answered on 21 Jul 2010, 11:47 PM
My problem was that i was usem a derived class of the gridview and not the really gridview. But with the sample they provided i realized the problem.

Check that. ;)
0
Mark
Top achievements
Rank 1
answered on 28 Jan 2011, 02:32 AM
Hello, 

I am having the same problem - and am using the latest version - Version: 2010.3 1314 (Jan 14, 2011)

The strange thing is that the RadGridView works as expected in a small test applications, but the same code will not work within our product.  Our product is a plug-in to Visual Studio and so the UI is constructed very differently than within the test application.  We do in fact construct WPF views using ElementHost, which may contribute to the problem, but I cannot see any difference between your ElementHost implementation and ours (besides the complexity of the hosting environment).  

The problem that I am seeing is that, although the grouping bar is visible, I cannot drag columns headers as expected - either to group, or even to re-order them.  So the question is, what can prevent column headers to be dragged?  Is there something about the hosting environment that enables this functionality? Perhaps this can lend some insight into what is going on.

Any help will be greatly appreciated!

Mark.


0
Milan
Telerik team
answered on 28 Jan 2011, 10:21 AM

Hello Mark,

For this scenario to work you should enable the native drag and drop of the RadDragAndDropManager. 

public MainWindow()
{
    // before InitializeComponent
    RadDragAndDropManager.EnableNativeDrag = true;
  
    InitializeComponent();
}

Hope this helps.



Best wishes,
Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Mark
Top achievements
Rank 1
answered on 01 Feb 2011, 11:21 PM
Hi Milan,

Thanks for your reply.  Unfortunately, in my environment, making this call did not fix anything for me.  However, I have discovered that this functionality works fine in our VS2008 environment, but not in VS2010.  I thought that it might have something to do with running the .Net 3.5 Telerik assemblies against WPF 4.0, but writing a standalone app in VS2010 works fine.  So, it must have something to do with our hosted environment within VS and perhaps some weird interactions with WPF 4.0 in this scenario. 

If you have any other ideas I would love to try them out.  In the meantime, there is something else I can try within our own code to try to help things out.  WIth any luck it will work for us.

Thanks,
Mark.
0
Tsvyatko
Telerik team
answered on 04 Feb 2011, 08:51 AM
Hi Mark,

Since we are still unable to identify the cause of the problem in the described scenario, I can suggest to try alternative approach.

If possible, check our latest internal build - 2010.3.1331- (without RadDragAndDropManager.EnableNativeDrag = true; line).
We have made some improvements in the DnD mechanism that might resolve the problem described.

Let me know for if this resolve the issue.

Best wishes,
Tsvyatko
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Mark
Top achievements
Rank 1
answered on 14 Feb 2011, 10:11 PM
Hi Tsvyatko,

I finally had a chance to download the latest internal build and try it out.  No luck.  It behaves the same as before - dragging columns is completely broken.  You dont even get any UI feedback that a column is being moved.  It is as if you are just moving your mouse.

Thanks,
Mark
0
Tsvyatko
Telerik team
answered on 16 Feb 2011, 08:10 AM
Hi Mark,

Unfortunately, without sample application, I can make only wild guesses what is causing the problem. Would it be possible to send us sample project that illustrates your scenario (you can attach project by opening support ticket).

Greetings,
Tsvyatko
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
dennis
Top achievements
Rank 1
Answers by
Vlad
Telerik team
dennis
Top achievements
Rank 1
Tsvyatko
Telerik team
Hristo
Telerik team
ColinBlakey
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Milan
Telerik team
Share this question
or