Programmatically commitEdit by using lostFocus event

2 posts, 0 answers
  1. Weera
    Weera avatar
    25 posts
    Member since:
    Apr 2012

    Posted 04 Nov 2014 Link to this post

    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

  2. Weera
    Weera avatar
    25 posts
    Member since:
    Apr 2012

    Posted 04 Nov 2014 in reply to Weera Link to this post

    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();
Back to Top