This is a migrated thread and some comments may be shown as answers.

Programmatically commitEdit by using lostFocus event

1 Answer 62 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Weera
Top achievements
Rank 1
Weera asked on 04 Nov 2014, 08:53 AM
Hi,
I told my client to buy Telerik Universal UI for Windows Store app. He has brought it and now my client need following business requirement to be fulfill.

Two X's is too redundant. Need to remove blue X completely. If the user clicks outside the editing area, they should no longer be editing.

I know that the blue X is for cancel but my client don't need it. Subscribe to the LostFocus Event didn't work as expect, it is weird.

Thanks and Best Regards,
Weera

1 Answer, 1 is accepted

Sort by
0
Weera
Top achievements
Rank 1
answered on 04 Nov 2014, 09:25 AM
I have solved by using the Hit TestService. Closed.
var row = (sender as RadDataGrid).HitTestService.RowItemFromPoint(point);
var cell = (sender as RadDataGrid).HitTestService.CellInfoFromPoint(point);

if(row == null || cell == null)
dataGrid.CommitEdit();
Tags
DataGrid
Asked by
Weera
Top achievements
Rank 1
Answers by
Weera
Top achievements
Rank 1
Share this question
or