or
A1
A1.1
A.1.1.1
B1.2
B.1.2.1
B.1.2.2
B.1.2.2.1
B.1.2.2.2
B.1.2.3
...
2. The other treeview is empty
Well, i like drag both elements as parents from treeview (1) to (2).
The first requirement is that drag drop from 1 to 2 the elements from 1 are deleted and can drag parents complete with all its child
The second requirement is when drag from 2 to 1 can only be done on the parent element to which it belongs for example:
Subitem B.1.2.2.2 can only drag about B.1.2.2
The third requirement is that within the tree two items can be sorted between them
Can I help me?, please
<
telerik:RadGridView
Name
=
"rgridProgramSearchResults"
AutoGenerateColumns
=
"True"
AutoGeneratingColumn
=
"rgridProgramSearchResults_AutoGeneratingColumn"
CanUserFreezeColumns
=
"False"
IsReadOnly
=
"True"
Grid.Column
=
"1"
ItemsSource
=
"{Binding}"
RowIndicatorVisibility
=
"Collapsed"
ShowGroupPanel
=
"False"
Margin
=
"0,0,0,30"
SelectionMode
=
"Multiple"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewSelectColumn
UniqueName
=
"Select"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
<
me:ImportStyle
x:Key
=
"stadiumCapacityStyle"
>
<
me:ImportStyle.BigStadiumStyle
>
<
Style
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"Background"
Value
=
"Red"
/>
</
Style
>
</
me:ImportStyle.BigStadiumStyle
>
<
me:ImportStyle.SmallStadiumStyle
>
<
Style
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"Background"
Value
=
"Yellow"
/>
</
Style
>
</
me:ImportStyle.SmallStadiumStyle
>
</
me:ImportStyle
>
private
void
rgridProgramSearchResults_AutoGeneratingColumn(
object
sender, GridViewAutoGeneratingColumnEventArgs e)
{
e.Column.CellStyleSelector = Application.Current.Resources[
"stadiumCapacityStyle"
]
as
StyleSelector;
}
public
class
ImportStyle : StyleSelector
{
public
override
Style SelectStyle(
object
item, DependencyObject container)
{
return
BigStadiumStyle;
}
public
Style BigStadiumStyle {
get
;
set
; }
public
Style SmallStadiumStyle {
get
;
set
; }
}