In order to trigger the BeginningEdit
event of RadGridView
, you will need to enter edit mode state of the cell. That will not happen if you have an editor control in your CellTemplate
, because it will get the focus instead of the editor defined in your CellEditTemplate
. There are several ways in which you can deal with this issue:
1) Use the default CellTemplate
, which is a TextBlock
bound to the DataMemberBinding
property of the current column.
2) Still use your DoubleUpDown
control as a CellTemplate
. However, you will need to make sure you will enter into edit mode state of the editor defined in CellEditTemplate and not the one in CellTemplate. Thus ensuring that the BeginningEdit event of RadGridView will be triggered. In order to do that you will need to disable the DoubleUpDown in the CellTemplate, by setting it's IsEnabled property to "False".
3) Another possible way to go about this issue is not to rely on the BeginningEdit event of RadGridView and use only a CellTemplate. Then you can add a handler for a specific to your needs event of the DoubleUpDown and implement your logic there. In order to make sure that a client will not enter in the edit mode state of the cell, you can set the IsReadOnly property of that column to "True".
I hope this helps.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.