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
220
embedded XamNumericEditor to accept multipliers
posted

Hello,

I have a XamDataGrid with a numeric editable column.  When entering edit mode, the grid automatically chooses the XamNumericEditor based on the column's type.  I would like the editor to allow the user to type in multipliers, but otherwise act as XamNumericEditor.

e.g. User types "195k"; value becomes 195000.  User types "3m"; value becomes 3000000

The XamNumericEditor does not seem to have this functionality, nor does it allow non-numeric characters to be entered.

Thank you.

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello David,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I set the Field’s EditorType Property to be a XamTextEditor and handled its EditModeEnding event and in there I convert the Value if it contains ‘m’ or ‘k’. Please let me know if this helps you or you need further clarifications on this matter.

     

    Looking forward for your reply.

    XamDataGridEditors.zip
Children