From 505d35435b87fb3e3433691d1e0bd32c48060144 Mon Sep 17 00:00:00 2001 From: Malini-SF4235 Date: Mon, 17 Nov 2025 15:36:25 +0530 Subject: [PATCH 1/6] ES-949556 Need to resolve the WPF UG mistakes --- wpf/DataGrid/drag-and-drop.md | 9 +- wpf/Multi-Column-DropDown/Columns.md | 6 +- wpf/Multi-Column-DropDown/Data-Binding.md | 66 +++++++-------- .../Editing-and-AutoComplete.md | 22 ++--- .../Editing-and-AutoCompletion.md | 15 ++-- wpf/Multi-Column-DropDown/Filtering.md | 6 +- wpf/Multi-Column-DropDown/Getting-Started.md | 84 +++++++++---------- wpf/Multi-Column-DropDown/Selection.md | 34 ++++---- 8 files changed, 117 insertions(+), 125 deletions(-) diff --git a/wpf/DataGrid/drag-and-drop.md b/wpf/DataGrid/drag-and-drop.md index 6dfac1236..807fc98fa 100644 --- a/wpf/DataGrid/drag-and-drop.md +++ b/wpf/DataGrid/drag-and-drop.md @@ -179,12 +179,9 @@ this.sfDataGrid.RowDragDropController.DragStart += RowDragDropController_DragSta private void RowDragDropController_DragStart(object sender, Syncfusion.UI.Xaml.Grid.GridRowDragStartEventArgs e) { - var records = e.DraggingRecords; - var orders = records[0] as Orders; - // You can restrict the dragging for certain rows based on the record value also. - var rowIndex = this.sfDataGrid.ResolveToRowIndex(orders); - var recordIndex = this.sfDataGrid.ResolveToRecordIndex(rowIndex); - if (recordIndex > 5) + var recordIndex = e.TargetRecord; + + if ((int)recordIndex > 5) e.Handled = true; } diff --git a/wpf/Multi-Column-DropDown/Columns.md b/wpf/Multi-Column-DropDown/Columns.md index ecb94fe61..b4bc5812b 100644 --- a/wpf/Multi-Column-DropDown/Columns.md +++ b/wpf/Multi-Column-DropDown/Columns.md @@ -43,9 +43,9 @@ SfMultiColumnDropDownControl control allows you to define the columns manually b {% highlight c# %} SfMultiColumnDropDownControl sfMultiColumn = new SfMultiColumnDropDownControl(); sfMultiColumn.AutoGenerateColumns = false; -sfMultiColumn.Columns.Add(new GridCurrencyColumn() { MappingName = “OrderID” }); -sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “CustomerID” }); -sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “Country” }); +sfMultiColumn.Columns.Add(new GridCurrencyColumn() { MappingName = "OrderID" }); +sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "CustomerID" }); +sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "Country" }); {% endhighlight %} {% endtabs %} diff --git a/wpf/Multi-Column-DropDown/Data-Binding.md b/wpf/Multi-Column-DropDown/Data-Binding.md index 734f4e50f..292e172f9 100644 --- a/wpf/Multi-Column-DropDown/Data-Binding.md +++ b/wpf/Multi-Column-DropDown/Data-Binding.md @@ -19,25 +19,25 @@ You can populate the drop down list for SfMultiColumnDropDownControl by setting - + SelectedIndex="0" + DisplayMember="Title" + ValueMember="OrderID" + ItemsSource="{Binding Orders}" /> @@ -58,19 +58,19 @@ Binding with complex properties {% tabs %} {% highlight xaml %} - + - - - - + + + + {% endhighlight %} @@ -82,19 +82,19 @@ Binding with indexer properties {% tabs %} {% highlight xaml %} - + - - - - + + + + {% endhighlight %} diff --git a/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md b/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md index 72941ba8c..08a4a367c 100644 --- a/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md +++ b/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md @@ -113,24 +113,24 @@ You can access the text displayed in the Textbox by using [SfMultiColumnDropDown - + - + SelectedIndex="0" + DisplayMember="Cast" + ValueMember="Title" + ItemsSource="{Binding Orders}" /> - - + - + {% endhighlight %} {% highlight c# %} diff --git a/wpf/Multi-Column-DropDown/Editing-and-AutoCompletion.md b/wpf/Multi-Column-DropDown/Editing-and-AutoCompletion.md index 783ec8867..92a10d2c5 100644 --- a/wpf/Multi-Column-DropDown/Editing-and-AutoCompletion.md +++ b/wpf/Multi-Column-DropDown/Editing-and-AutoCompletion.md @@ -35,18 +35,13 @@ As an example of this feature, consider a simple scenario where the SfMultiColum - + - - - + {% endhighlight %} In the above code example, AutoCompletion is enabled .It gives the matching suggestion from the collection based on the input as illustrated in the following screenshot. diff --git a/wpf/Multi-Column-DropDown/Filtering.md b/wpf/Multi-Column-DropDown/Filtering.md index 6b9f82d4f..daa824896 100644 --- a/wpf/Multi-Column-DropDown/Filtering.md +++ b/wpf/Multi-Column-DropDown/Filtering.md @@ -15,7 +15,7 @@ By default, drop down list is filtered based on `SearchCondition.StartsWith` con {% tabs %} {% highlight xml %} - + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:syncfusion="http://schemas.syncfusion.com/wpf" + x:Class="WpfApplication1.MainWindow" + Title="MainWindow" Height="350" Width="525"> - + {% endhighlight %} @@ -224,16 +224,16 @@ public class ViewModel private void GenerateOrders() { - _orders.Add(new OrderInfo(1001, “Maria Anders”, “Germany”, “ALFKI”, “Berlin”)); - _orders.Add(new OrderInfo(1002, “Ana Trujilo”, “Mexico”, “ANATR”, “Mexico D.F.”)); - _orders.Add(new OrderInfo(1003, “Antonio Moreno”, “Mexico”, “ANTON”, “Mexico D.F.”)); - _orders.Add(new OrderInfo(1004, “Thomas Hardy”, “UK”, “AROUT”, “London”)); - _orders.Add(new OrderInfo(1005, “Christina Berglund”, “Sweden”, “BERGS”, “Lula”)); - _orders.Add(new OrderInfo(1006, “Hanna Moos”, “Germany”, “BLAUS”, “Mannheim”)); - _orders.Add(new OrderInfo(1007, “Frederique Citeaux”, “France”, “BLONP”, “Strasbourg”)); - _orders.Add(new OrderInfo(1008, “Martin Sommer”, “Spain”, “BOLID”, “Madrid”)); - _orders.Add(new OrderInfo(1009, “Laurence Lebihan”, “France”, “BONAP”, “Marseille”)); - _orders.Add(new OrderInfo(1010, “Elizabeth Lincoln”, “Canada”, “BOTTM”, “Tsawassen”)); + _orders.Add(new OrderInfo(1001, "Maria Anders", "Germany", "ALFKI", "Berlin")); + _orders.Add(new OrderInfo(1002, "Ana Trujilo", "Mexico", "ANATR", "Mexico D.F.")); + _orders.Add(new OrderInfo(1003, "Antonio Moreno", "Mexico", "ANTON", "Mexico D.F.")); + _orders.Add(new OrderInfo(1004, "Thomas Hardy", "UK", "AROUT", "London")); + _orders.Add(new OrderInfo(1005, "Christina Berglund", "Sweden", "BERGS", "Lula")); + _orders.Add(new OrderInfo(1006, "Hanna Moos", "Germany", "BLAUS", "Mannheim")); + _orders.Add(new OrderInfo(1007, "Frederique Citeaux", "France", "BLONP", "Strasbourg")); + _orders.Add(new OrderInfo(1008, "Martin Sommer", "Spain", "BOLID", "Madrid")); + _orders.Add(new OrderInfo(1009, "Laurence Lebihan", "France", "BONAP", "Marseille")); + _orders.Add(new OrderInfo(1010, "Elizabeth Lincoln", "Canada", "BOTTM", "Tsawassen")); } } {% endhighlight %} @@ -249,22 +249,22 @@ Bind the collection created in previous step to `ItemsSource` property by settin {% tabs %} {% highlight xaml %} + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:syncfusion="http://schemas.syncfusion.com/wpf" + x:Class="WpfApplication1.MainWindow" + xmlns:local="clr-namespace:WpfApplication1" + Title="MainWindow" Height="350" Width="525"> - - + + {% endhighlight %} @@ -287,26 +287,26 @@ By default, the SfMultiColumnDropDownControl generates the columns automatically {% tabs %} {% highlight xaml %} - + - - - + + + {% endhighlight %} {% highlight c# %} SfMultiColumnDropDownControl sfMultiColumn = new SfMultiColumnDropDownControl(); sfMultiColumn.AutoGenerateColumns = false; -sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “OrderID” }); -sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “CustomerID” }); -sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “Country” }); +sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "OrderID" }); +sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "CustomerID" }); +sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "Country" }); {% endhighlight %} {% endtabs %} diff --git a/wpf/Multi-Column-DropDown/Selection.md b/wpf/Multi-Column-DropDown/Selection.md index e9ed67052..0a3c33233 100644 --- a/wpf/Multi-Column-DropDown/Selection.md +++ b/wpf/Multi-Column-DropDown/Selection.md @@ -19,11 +19,11 @@ By default, you can select only one item at a time from the dropdown, as the def {% tabs %} {% highlight xml %} - + {% endhighlight %} {% highlight c# %} @@ -47,11 +47,11 @@ You can select multiple rows at same time by setting [SelectionMode](https://hel {% capture codesnippet1 %} {% tabs %} {% highlight xml %} - + {% endhighlight %} {% highlight c# %} @@ -73,12 +73,12 @@ By default, selected values in the editor are separated by `;`. You can change t {% tabs %} {% highlight xml %} - + {% endhighlight %} {% highlight c# %} @@ -133,7 +133,7 @@ xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity" From bc80d8b830e6618f44db89a9b4782ecc2a39fee8 Mon Sep 17 00:00:00 2001 From: Malini-SF4235 Date: Mon, 17 Nov 2025 15:45:58 +0530 Subject: [PATCH 2/6] ES-949556 Committed the changes to the GitHub. --- .../Editing-and-AutoCompletion.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/wpf/Multi-Column-DropDown/Editing-and-AutoCompletion.md b/wpf/Multi-Column-DropDown/Editing-and-AutoCompletion.md index 92a10d2c5..783ec8867 100644 --- a/wpf/Multi-Column-DropDown/Editing-and-AutoCompletion.md +++ b/wpf/Multi-Column-DropDown/Editing-and-AutoCompletion.md @@ -35,13 +35,18 @@ As an example of this feature, consider a simple scenario where the SfMultiColum - + - + + + {% endhighlight %} In the above code example, AutoCompletion is enabled .It gives the matching suggestion from the collection based on the input as illustrated in the following screenshot. From fe49e2e9607edc47422c5d4eca410d2b40c68e5a Mon Sep 17 00:00:00 2001 From: Malini-SF4235 Date: Mon, 17 Nov 2025 16:08:13 +0530 Subject: [PATCH 3/6] ES-949556 Updated the table Contents of SfTreeGrid. --- wpf-toc.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/wpf-toc.html b/wpf-toc.html index fd1aed0fd..737abb875 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -1945,7 +1945,7 @@
  • Accessibility
  • -
  • +
  • SfTreeGrid
  • From e1ede06edbcf275d427d716927e13afe9833d19e Mon Sep 17 00:00:00 2001 From: Malini-SF4235 Date: Mon, 17 Nov 2025 19:54:01 +0530 Subject: [PATCH 4/6] ES-949556 Committed changes to the Github. --- wpf-toc.html | 2 +- wpf/DataGrid/drag-and-drop.md | 18 ++++++++---------- wpf/Multi-Column-DropDown/Selection.md | 16 ++++++++-------- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/wpf-toc.html b/wpf-toc.html index 737abb875..9880c55a1 100644 --- a/wpf-toc.html +++ b/wpf-toc.html @@ -1960,6 +1960,7 @@
  • Clipboard Operations
  • Node CheckBox
  • Data Validation
  • +
  • Load On Demand
  • Styles and Templates
  • Conditional Styling
  • Grid Lines Customization
  • @@ -1972,7 +1973,6 @@
  • Export To PDF
  • Printing
  • MVVM
  • -
  • Load On Demand
  • Localization
  • UI Automation
  • Helpers
  • diff --git a/wpf/DataGrid/drag-and-drop.md b/wpf/DataGrid/drag-and-drop.md index 807fc98fa..00d742d69 100644 --- a/wpf/DataGrid/drag-and-drop.md +++ b/wpf/DataGrid/drag-and-drop.md @@ -179,9 +179,12 @@ this.sfDataGrid.RowDragDropController.DragStart += RowDragDropController_DragSta private void RowDragDropController_DragStart(object sender, Syncfusion.UI.Xaml.Grid.GridRowDragStartEventArgs e) { - var recordIndex = e.TargetRecord; - - if ((int)recordIndex > 5) + var records = e.DraggingRecords; + var orders = records[0] as Orders; + // You can restrict the dragging for certain rows based on the record value also. + var rowIndex = this.sfDataGrid.ResolveToRowIndex(orders); + var recordIndex = this.sfDataGrid.ResolveToRecordIndex(rowIndex); + if (recordIndex > 5) e.Handled = true; } @@ -198,13 +201,8 @@ this.sfDataGrid.RowDragDropController.Drop += RowDragDropController_Drop; private void RowDragDropController_Drop(object sender, GridRowDropEventArgs e) { - var record = e.TargetRecord; - if (record == null) - return; - var orders = (record as RecordEntry).Data as Orders; - // You can restrict the dropping for certain rows based on the target record value also. - var rowIndex = this.sfDataGrid.ResolveToRowIndex(orders); - var recordIndex = this.sfDataGrid.ResolveToRecordIndex(rowIndex); + int recordIndex = (int)e.TargetRecord; + if (recordIndex > 5) e.Handled = true; } diff --git a/wpf/Multi-Column-DropDown/Selection.md b/wpf/Multi-Column-DropDown/Selection.md index 0a3c33233..44e0bdbd5 100644 --- a/wpf/Multi-Column-DropDown/Selection.md +++ b/wpf/Multi-Column-DropDown/Selection.md @@ -19,7 +19,7 @@ By default, you can select only one item at a time from the dropdown, as the def {% tabs %} {% highlight xml %} - - + - + @@ -124,7 +124,7 @@ xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity" - + Command="{Binding Path=DataContext.PopupOpening, ElementName=sfMultiColumn}" + CommandParameter="{Binding ElementName=sfMultiColumn}" /> From 887a588dda96e062f4e1859c1d6b20737c62cf85 Mon Sep 17 00:00:00 2001 From: Malini-SF4235 <153497178+Malini-SF4235@users.noreply.github.com> Date: Tue, 18 Nov 2025 10:00:57 +0530 Subject: [PATCH 5/6] Updated the Comments Added comment to clarify row drop restrictions. --- wpf/DataGrid/drag-and-drop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpf/DataGrid/drag-and-drop.md b/wpf/DataGrid/drag-and-drop.md index 00d742d69..aadfc2095 100644 --- a/wpf/DataGrid/drag-and-drop.md +++ b/wpf/DataGrid/drag-and-drop.md @@ -202,7 +202,7 @@ this.sfDataGrid.RowDragDropController.Drop += RowDragDropController_Drop; private void RowDragDropController_Drop(object sender, GridRowDropEventArgs e) { int recordIndex = (int)e.TargetRecord; - + //You can restrict the dropping for certain rows based on the target record index. if (recordIndex > 5) e.Handled = true; } From 72d4074ac83e18f27c76050c7ab9d5ec63801e08 Mon Sep 17 00:00:00 2001 From: Malini-SF4235 <153497178+Malini-SF4235@users.noreply.github.com> Date: Tue, 18 Nov 2025 10:13:45 +0530 Subject: [PATCH 6/6] Updated the MultiColumnDropDown name in the C# code --- wpf/Multi-Column-DropDown/Selection.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wpf/Multi-Column-DropDown/Selection.md b/wpf/Multi-Column-DropDown/Selection.md index 44e0bdbd5..46aaad602 100644 --- a/wpf/Multi-Column-DropDown/Selection.md +++ b/wpf/Multi-Column-DropDown/Selection.md @@ -29,7 +29,7 @@ By default, you can select only one item at a time from the dropdown, as the def {% highlight c# %} using Syncfusion.UI.Xaml.Grid; -this.MultiColumnDropDown.SelectionMode = DropDownSelectionMode.Single; +this.sfMultiColumn.SelectionMode = DropDownSelectionMode.Single; {% endhighlight %} {% endtabs %} @@ -57,7 +57,7 @@ You can select multiple rows at same time by setting [SelectionMode](https://hel {% highlight c# %} using Syncfusion.UI.Xaml.Grid; -this.MultiColumnDropDown.SelectionMode = DropDownSelectionMode.Multiple; +this.sfMultiColumn.SelectionMode = DropDownSelectionMode.Multiple; {% endhighlight %} {% endtabs %} {% endcapture %} @@ -84,7 +84,7 @@ By default, selected values in the editor are separated by `;`. You can change t {% highlight c# %} using Syncfusion.UI.Xaml.Grid; -this.MultiColumnDropDown.SeparatorString = "-"; +this.sfMultiColumn.SeparatorString = "-"; {% endhighlight %} {% endtabs %} @@ -219,7 +219,7 @@ You can handle the selection operations in SfMultiColumnDropDownControl by using {% tabs %} {% highlight c# %} -MultiColumnDropDown.SelectionChanged += MultiColumnDropDown_SelectionChanged; +sfMultiColumn.SelectionChanged += MultiColumnDropDown_SelectionChanged; void MultiColumnDropDown_SelectionChanged(object sender, Syncfusion.UI.Xaml.Grid.SelectionChangedEventArgs args) {