Hello Support,
We need to display a button inside a xamDataGrid cell only when the cell is in edit mode for a decimal column. We applied the style that you suggested on the following link; but are facing a problem while editing the cell.
http://community.infragistics.com/forums/p/60578/307549.aspx#307549
We have applied the editor style to a column whose data type is decimal i.e. EditAsType="{x:Type sys:Decimal}" and changed the target type of the style from xamTextEditor to xamNumericEditor. However as the user starts typing 12345 the output comes to $23,541.00 instead of the required $12,345.00. We noticed that the cursor moves to the first position after we enter the first digit. Also after the comma appears the cursor again moves one position ahead. This issue occurs only when the style is applied in order to display a button inside the cell. Can you please help us solve this issue.
Waiting for your reply.
Thank You.
Hello,
I have been looking into your requirement and I have changed the sample from the link you have provided and now it works as you expect. Basically I changed the name of the TextBox in the EditTemplate of the XamNumericEditor to be the same as the one in the default style of the XamMaskedEditor which is the basic style of the XamNumericEditor. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hello Stefan,
Changing the name of the text box does help but only when the cell is directly focused i.e. when the cell with the style is clicked directly. However, when this cell receives focus from another cell i.e. by pressing the tab key, the cell does not enter edit mode and when we click on the cell, the cursor appears and on entering numbers the same issue occurs. Also decimal does not appear when pressed; it appears only after the digit after the decimal is pressed.
Please find the screen shot attached for your reference.