Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEO-181417 UWP TreeGrid Redirect #570

Open
wants to merge 7 commits into
base: hotfix/hotfix-v25.1.35
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions uwp/DataGrid/Grouping.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: post
title: Grouping in UWP DataGrid control | Syncfusion
description: Learn here all about Grouping support in Syncfusion UWP DataGrid (SfDataGrid) control and more.
description: Learn here all about grouping support in Syncfusion UWP DataGrid (SfDataGrid) control, its element and more.
platform: uwp
control: SfDataGrid
documentation: ug
Expand Down Expand Up @@ -560,16 +560,16 @@ You can download the sample demo [here](https://www.syncfusion.com/downloads/sup
### GroupExpanding event


The [SfDataGrid.GroupExpanding](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html) event occurs when the group is being expanded.
The [SfDataGrid.GroupExpanding](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html#Syncfusion_UI_Xaml_Grid_SfDataGrid_GroupExpanding) event occurs when the group is being expanded.


The [GroupChangingEventArgs](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.GroupChangingEventArgs.html) of the [GroupExpanding](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html) event provides the information about the expanding group and it has the following members.

[Group](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.GroupChangingEventArgs.html#Syncfusion_UI_Xaml_Grid_GroupChangingEventArgs_Group) - Gets the group that’s being expanded.

[Cancel](https://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(System.ComponentModel.CancelEventArgs.Cancel)&rd=true) – Decides whether to cancel the group expansion.
[Cancel](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.canceleventargs.cancel?view=net-8.0&f1url=%3FappId%3DDev10IDEF1%26l%3DEN-US%26k%3Dk(System.ComponentModel.CancelEventArgs.Cancel)%26rd%3Dtrue) – Decides whether to cancel the group expansion.

You can cancel the group expansion by setting [GroupChangingEventArgs.Cancel](https://learn.microsoft.com/en-us/library/system.componentmodel.canceleventargs.cancel.aspx) to `true`.
You can cancel the group expansion by setting [GroupChangingEventArgs.Cancel](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.canceleventargs.cancel?view=net-8.0) to `true`.

{% tabs %}
{% highlight c# %}
Expand All @@ -588,7 +588,7 @@ private void DataGrid_GroupExpanding(object sender, GroupChangingEventArgs e)
### GroupExpanded event


The [SfDataGrid.GroupExpanded](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html) event occurs after the group is expanded.
The [SfDataGrid.GroupExpanded](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html#Syncfusion_UI_Xaml_Grid_SfDataGrid_GroupExpanded) event occurs after the group is expanded.

The [GroupChangedEventArgs](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.GroupChangedEventArgs.html) of the `GroupExpanded` event provides the information about the expanded group and it has the following member.

Expand All @@ -597,16 +597,16 @@ The [GroupChangedEventArgs](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xam

### GroupCollapsing event

The [SfDataGrid.GroupCollapsing](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html) event occurs when the group is being collapsed.
The [SfDataGrid.GroupCollapsing](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html#Syncfusion_UI_Xaml_Grid_SfDataGrid_GroupCollapsing) event occurs when the group is being collapsed.

The [GroupChangingEventArgs](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.GroupChangingEventArgs.html) of the `GroupCollapsing` event provides the information about the collapsing group and it contains the following member.


[Group](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.GroupChangingEventArgs.html#Syncfusion_UI_Xaml_Grid_GroupChangingEventArgs_Group) - Gets the group that’s being collapsed.

[Cancel](https://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(System.ComponentModel.CancelEventArgs.Cancel)&rd=true) – Decides whether to cancel the group collapsing.
[Cancel](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.canceleventargs.cancel?view=net-8.0&f1url=%3FappId%3DDev10IDEF1%26l%3DEN-US%26k%3Dk(System.ComponentModel.CancelEventArgs.Cancel)%26rd%3Dtrue) – Decides whether to cancel the group collapsing.

You can cancel the group is being collapsed by using [GroupChangingEventArgs.Cancel](https://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(System.ComponentModel.CancelEventArgs.Cancel)&rd=true) of `GroupCollapsing` event.
You can cancel the group is being collapsed by using [GroupChangingEventArgs.Cancel](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.canceleventargs.cancel?view=net-8.0&f1url=%3FappId%3DDev10IDEF1%26l%3DEN-US%26k%3Dk(System.ComponentModel.CancelEventArgs.Cancel)%26rd%3Dtrue) of `GroupCollapsing` event.


{% tabs %}
Expand All @@ -625,7 +625,7 @@ private void DataGrid_GroupCollapsing(object sender, GroupChangingEventArgs e)

### GroupCollapsed event

The [SfDataGrid.GroupCollapsed](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html) event occurs after the group is collapsed.
The [SfDataGrid.GroupCollapsed](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfDataGrid.html#Syncfusion_UI_Xaml_Grid_SfDataGrid_GroupCollapsed) event occurs after the group is collapsed.

[GroupChangedEventArgs](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.GroupChangedEventArgs.html) of the `GroupCollapsed` event provides the information about collapsed group and it contains the following member.

Expand Down
2 changes: 1 addition & 1 deletion uwp/TreeGrid/Node-CheckBox.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ N>

### NodeCheckStateChanged

[NodeCheckStateChanged](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.TreeGrid.SfTreeGrid.html) event triggered when user check or uncheck the node check box.
[NodeCheckStateChanged](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.TreeGrid.SfTreeGrid.html#Syncfusion_UI_Xaml_TreeGrid_SfTreeGrid_NodeCheckStateChanged) event triggered when user check or uncheck the node check box.

{% tabs %}
{% highlight c# %}
Expand Down
14 changes: 7 additions & 7 deletions uwp/TreeGrid/Row-Drag-And-Drop.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
layout: post
title: Row drag and drop in SfTreeGrid
description: How to perform row drag and drop in SfTreeGrid
title: Row drag and drop in UWP TreeGrid | Syncfusion
description: Learn here all about how to perform row drag and drop in UWP TreeGrid control, its elements, and more.
platform: uwp
control: SfTreeGrid
documentation: ug
---
# Row drag and drop
# Row drag and drop in UWP TreeGrid

You can allow end-users to drag and drop the rows in SfTreeGrid and between two SfTreeGrid by setting [SfTreeGrid.AllowDraggingRows](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.TreeGrid.SfTreeGrid.html#Syncfusion_UI_Xaml_TreeGrid_SfTreeGrid_AllowDraggingRows) to `true`.It is also possible to drag and drop to and from any other control.

Expand All @@ -22,10 +22,10 @@ treeGrid.AllowDraggingRows = true;
{% endhighlight %}
{% endtabs %}

![](Row-Drag-And-Drop_images/Row-Drag-And-Drop_img1.png)
![Row drag and drop in UWP TreeGrid](Row-Drag-And-Drop_images/uwp-treegrid-row-drag-drop.png)

While dropping, the dragged node(s) can be added above or below or as a child node based on its drop position. For example, if you drop at the bottom of node, it will be added below the node and if you are dropping over the node, the it will be added as child of that node.
![](Row-Drag-And-Drop_images/Row-Drag-And-Drop_img2.png)
![Node drop position in UWP TreeGrid](Row-Drag-And-Drop_images/uwp-treegrid-drop-position.png)

## Auto expanding the node on drag over

Expand All @@ -43,7 +43,7 @@ N> When drop position is “Drop as child”, drag indicators will not be shown.
## Dragging multiple nodes

SfTreeGrid allows user to drag multiple selected nodes. You can enable multiple selection by setting [SfTreeGrid.SelectionMode](https://help.syncfusion.com/cr/uwp/Syncfusion.UI.Xaml.Grid.SfGridBase.html#Syncfusion_UI_Xaml_Grid_SfGridBase_SelectionMode) as `Multiple` or `Extended`.
![](Row-Drag-And-Drop_images/Row-Drag-And-Drop_img3.png)
![Dragging multiple nodes in UWP TreeGrid](Row-Drag-And-Drop_images/uwp-treegrid-dragging-multiple-nodes.png)

## Drag and Drop between TreeGrids

Expand Down Expand Up @@ -431,4 +431,4 @@ public class TreeGridRowDragDropControllerExt : TreeGridRowDragDropController
{% endtabs %}

After dropping in tree grid, dragged item is added to TreeGrid based on the dropped position.
You can download the sample from [here](http://www.syncfusion.com/downloads/support/directtrac/general/ze/DragAndDrop_ListViewAndTreeGrid796052425).
You can download the sample from [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/DragAndDrop_ListViewAndTreeGrid796052425).