Hi
Tahseen ,
We
are able to reproduce the problem “Selection cleared when right click on the
multiple selection of rows” and have logged defect report regarding this.
The
fix for this issue will be included in our upcoming release Vol 2 which is
scheduled in end of June 2014.
Please
let usknow if you have any questions.
Regards,
Jayapradha
Hi
Tahseen,
We
analyzed your requirement once again and you can achieve this by using the
below code snippet.
Code
snippet:
this.sfDataGrid.PreviewMouseRightButtonDown +=
sfDataGrid_PreviewMouseRightButtonDown; this.sfDataGrid.CurrentCellActivating+=sfDataGrid_CurrentCellActivating; this.sfDataGrid.CurrentCellBeginEdit+=sfDataGrid_CurrentCellBeginEdit;
void
sfDataGrid_PreviewMouseRightButtonDown(object sender, MouseButtonEventArgs e) { rightbuttonpressed = true; } private void sfDataGrid_CurrentCellActivating(object sender,
Syncfusion.UI.Xaml.Grid.CurrentCellActivatingEventArgs args) { if (rightbuttonpressed) { this.sfDataGrid.Dispatcher.BeginInvoke(new Action(() => {
rightbuttonpressed = false; }), DispatcherPriority.ApplicationIdle); args.Cancel = true; } } private void sfDataGrid_CurrentCellBeginEdit(object sender, CurrentCellBeginEditEventArgs args) { if (rightbuttonpressed) { rightbuttonpressed = false; args.Cancel = true; } } |
We
are assuming that your query is related to WPF SfDataGrid, but this forum
placed under WinRT SfDataGrid. So could you please let us know the platform
used whether it is WPF/Win RT?
Please
let us know if this code snippet helps you.
Regards,
Jayapradha
S