Michael Storchmann
Top achievements
Rank 1
Michael Storchmann
asked on 19 Apr 2011, 02:12 PM
Hi Guys,
reffering to your WPF-Demo "Tree to Grid Drag": How can I prevent
a Drag-Operation from the GridView by dragging the Header instead of
the item?
The behavior makes no sense. In your corresponding Silverlight-Example
you can´t drag the Header.
Bye, Michael
reffering to your WPF-Demo "Tree to Grid Drag": How can I prevent
a Drag-Operation from the GridView by dragging the Header instead of
the item?
The behavior makes no sense. In your corresponding Silverlight-Example
you can´t drag the Header.
Bye, Michael
5 Answers, 1 is accepted
0
Hello Michael Storchmann,
To prevent dragging of the header cells, you need to disable grouping of the grid on column level by setting IsGroupable to False.
Kind regards,
Yordanka
the Telerik team
To prevent dragging of the header cells, you need to disable grouping of the grid on column level by setting IsGroupable to False.
Kind regards,
Yordanka
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
Michael Storchmann
Top achievements
Rank 1
answered on 19 Apr 2011, 04:53 PM
Hello Yordanka,
sorry, but that is too simple :-) It doesn´t work (Q1/2011, no internal Build).
Look at your WPF-Demo "Tree to Grid Drag", change the RadGridView (x:Name="orderView")
from AutogenerateColumns="True" to "False".
Add:
sorry, but that is too simple :-) It doesn´t work (Q1/2011, no internal Build).
Look at your WPF-Demo "Tree to Grid Drag", change the RadGridView (x:Name="orderView")
from AutogenerateColumns="True" to "False".
Add:
<telerik:RadGridView.Columns> <telerik:GridViewDataColumn IsGroupable="False" DataMemberBinding="{Binding Name}" Header="Name" /> <telerik:GridViewDataColumn IsGroupable="False" DataMemberBinding="{Binding Description}" Header="Description" /> </telerik:RadGridView.Columns>
After start the Demo drag e.g. the "Name" ColumnHeader to the TreeView.
It works - but it shouldn´t.
Michael
0
Michael Storchmann
Top achievements
Rank 1
answered on 21 Apr 2011, 11:56 AM
Any help? SP1 has the same (ok, small but confusing) problem.
Michael
Michael
0
Accepted
Hi Michael Storchmann,
Excuse me for the misunderstanding.
We have investigated why the WPF demo header cells can be dragged and it seems that we have missed to exclude GridViewHeaderCell element from the DragAndDrop implementation. This should be done on each DragAndDrop event - OnDragInfo, OnDropInfo, OnDragQuery, OnDropQuery:
You can check the corresponding Silverlight demo for a reference.
Best wishes,
Yordanka
the Telerik team
Excuse me for the misunderstanding.
We have investigated why the WPF demo header cells can be dragged and it seems that we have missed to exclude GridViewHeaderCell element from the DragAndDrop implementation. This should be done on each DragAndDrop event - OnDragInfo, OnDropInfo, OnDragQuery, OnDropQuery:
if
(e.Options.Source
is
GridViewHeaderCell)
{
return
;
}
You can check the corresponding Silverlight demo for a reference.
Best wishes,
Yordanka
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
Michael Storchmann
Top achievements
Rank 1
answered on 22 Apr 2011, 04:55 PM
Hello Yordanka,
ok, I understand - and I´ve made the changes. There is a small issue:
if I select the Header, the Drag-Operation seems to start. But it isn´t
the Drag-Operation, it is the "IsGroupable"-Operation. It seems the current
version of the GridView doesn´t respect the "IsGroupable=False"-Property.
But for that, it is the wrong forum.
Thanks, Michael
ok, I understand - and I´ve made the changes. There is a small issue:
if I select the Header, the Drag-Operation seems to start. But it isn´t
the Drag-Operation, it is the "IsGroupable"-Operation. It seems the current
version of the GridView doesn´t respect the "IsGroupable=False"-Property.
But for that, it is the wrong forum.
Thanks, Michael