Skip to content

Commit e1ede06

Browse files
committed
ES-949556 Committed changes to the Github.
1 parent fe49e2e commit e1ede06

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

wpf-toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,7 @@
19601960
<li><a href="/wpf/TreeGrid/Clipboard-Operations">Clipboard Operations</a></li>
19611961
<li><a href="/wpf/TreeGrid/Node-CheckBox">Node CheckBox</a></li>
19621962
<li><a href="/wpf/TreeGrid/Data-Validation">Data Validation</a></li>
1963+
<li><a href="/wpf/TreeGrid/Load-On-Demand">Load On Demand</a></li>
19631964
<li><a href="/wpf/TreeGrid/Styles-and-Templates">Styles and Templates</a></li>
19641965
<li><a href="/wpf/TreeGrid/Conditional-Styling">Conditional Styling</a></li>
19651966
<li><a href="/wpf/TreeGrid/GridLines">Grid Lines Customization</a></li>
@@ -1972,7 +1973,6 @@
19721973
<li><a href="/wpf/TreeGrid/Export-To-PDF">Export To PDF</a></li>
19731974
<li><a href="/wpf/TreeGrid/Printing">Printing</a></li>
19741975
<li><a href="/wpf/TreeGrid/MVVM">MVVM</a></li>
1975-
<li><a href="/wpf/TreeGrid/Load-On-Demand">Load On Demand</a></li>
19761976
<li><a href="/wpf/TreeGrid/Localization">Localization</a></li>
19771977
<li><a href="/wpf/TreeGrid/UI-Automation">UI Automation</a></li>
19781978
<li><a href="/wpf/TreeGrid/Helpers">Helpers</a></li>

wpf/DataGrid/drag-and-drop.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,12 @@ this.sfDataGrid.RowDragDropController.DragStart += RowDragDropController_DragSta
179179

180180
private void RowDragDropController_DragStart(object sender, Syncfusion.UI.Xaml.Grid.GridRowDragStartEventArgs e)
181181
{
182-
var recordIndex = e.TargetRecord;
183-
184-
if ((int)recordIndex > 5)
182+
var records = e.DraggingRecords;
183+
var orders = records[0] as Orders;
184+
// You can restrict the dragging for certain rows based on the record value also.
185+
var rowIndex = this.sfDataGrid.ResolveToRowIndex(orders);
186+
var recordIndex = this.sfDataGrid.ResolveToRecordIndex(rowIndex);
187+
if (recordIndex > 5)
185188
e.Handled = true;
186189
}
187190

@@ -198,13 +201,8 @@ this.sfDataGrid.RowDragDropController.Drop += RowDragDropController_Drop;
198201

199202
private void RowDragDropController_Drop(object sender, GridRowDropEventArgs e)
200203
{
201-
var record = e.TargetRecord;
202-
if (record == null)
203-
return;
204-
var orders = (record as RecordEntry).Data as Orders;
205-
// You can restrict the dropping for certain rows based on the target record value also.
206-
var rowIndex = this.sfDataGrid.ResolveToRowIndex(orders);
207-
var recordIndex = this.sfDataGrid.ResolveToRecordIndex(rowIndex);
204+
int recordIndex = (int)e.TargetRecord;
205+
208206
if (recordIndex > 5)
209207
e.Handled = true;
210208
}

wpf/Multi-Column-DropDown/Selection.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ By default, you can select only one item at a time from the dropdown, as the def
1919

2020
{% tabs %}
2121
{% highlight xml %}
22-
<syncfusion:SfMultiColumnDropDownControl x:Name="MultiColumnDropDown"
22+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
2323
ItemsSource="{Binding Orders}"
2424
ValueMember="CustomerID"
2525
DisplayMember="CustomerName"
@@ -47,7 +47,7 @@ You can select multiple rows at same time by setting [SelectionMode](https://hel
4747
{% capture codesnippet1 %}
4848
{% tabs %}
4949
{% highlight xml %}
50-
<syncfusion:SfMultiColumnDropDownControl x:Name="MultiColumnDropDown"
50+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
5151
ItemsSource="{Binding Orders}"
5252
ValueMember="CustomerID"
5353
DisplayMember="CustomerName"
@@ -73,7 +73,7 @@ By default, selected values in the editor are separated by `;`. You can change t
7373

7474
{% tabs %}
7575
{% highlight xml %}
76-
<syncfusion:SfMultiColumnDropDownControl x:Name="MultiColumnDropDown"
76+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
7777
ItemsSource="{Binding Orders}"
7878
SelectionMode="Multiple"
7979
ValueMember="CustomerID"
@@ -109,10 +109,10 @@ xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
109109
<TextBox x:Name="searchTextBox" Margin="3" >
110110
<interactivity:Interaction.Triggers>
111111
<interactivity:EventTrigger EventName="TextChanged">
112-
<interactivity:InvokeCommandAction Command="{Binding Path=DataContext.TextChanged, Source={x:Reference Name=MultiColumnDropDown}}" >
112+
<interactivity:InvokeCommandAction Command="{Binding Path=DataContext.TextChanged, Source={x:Reference Name=sfMultiColumn}}" >
113113
<interactivity:InvokeCommandAction.CommandParameter>
114114
<MultiBinding Converter="{StaticResource multiConverter}">
115-
<Binding Source="{x:Reference Name=MultiColumnDropDown}"/>
115+
<Binding Source="{x:Reference Name=sfMultiColumn}"/>
116116
<Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=TextBox}"/>
117117
</MultiBinding>
118118
</interactivity:InvokeCommandAction.CommandParameter>
@@ -124,7 +124,7 @@ xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
124124
</DataTemplate>
125125
</Window.Resources>
126126

127-
<syncfusion:SfMultiColumnDropDownControl x:Name="MultiColumnDropDown"
127+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
128128
DisplayMember="Title"
129129
HeaderTemplate="{StaticResource headerTemplate}"
130130
ItemsSource="{Binding MoviesLists}"
@@ -133,8 +133,8 @@ xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
133133
<interactivity:Interaction.Triggers>
134134
<interactivity:EventTrigger EventName="PopupOpening">
135135
<interactivity:InvokeCommandAction
136-
Command="{Binding Path=DataContext.PopupOpening, ElementName=MultiColumnDropDown}"
137-
CommandParameter="{Binding ElementName=MultiColumnDropDown}" />
136+
Command="{Binding Path=DataContext.PopupOpening, ElementName=sfMultiColumn}"
137+
CommandParameter="{Binding ElementName=sfMultiColumn}" />
138138
</interactivity:EventTrigger>
139139
</interactivity:Interaction.Triggers>
140140
</syncfusion:SfMultiColumnDropDownControl>

0 commit comments

Comments
 (0)