Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4341
Issue while editing a cell for which style is applied
posted

 

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.

 

Parents
No Data
Reply
  • 138253
    Offline posted

    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.

    XamDataGrid_Searc.zip
Children