I have TextColumn which is shows numeric values. I am using FormatString="{}{0:N0}" to show to number in a format but when I get into the edit mode, textbox does not show number format.
How can preserve formating for edit mode?
How can restrict user to just enter numeric values with commas if possible?
Hello Gajender,
We are still following this forum thread.
Please do not hesitate to cotnact us, if you have any other questions with this matter.
Thanks.
Thank you for your reply. I have further investigated the functionality that you are trying to achieve and it seems that currently, you should use the TemplateColumn to apply the format for the editor of the cells. I have submitted a new Product Idea for you, for having the ability to set the format of the TextBox, used as editor for the TextColumn. I have sent your Product Idea directly to our product management team. Our product team chooses new Product Ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time. Your reference number for this Product Idea is PI13050144
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
thanks for yu answer. TemplateColumn can solve many similar issues but I want to use the TextColumnm which is much lighter to use.
Thank you for your reply and the clarification on the matter. I have looked into your requirement and since you are using XamGrid and you wish to enable editing and to have the same format in edit mode, I can suggest using TempalteColumn and define ItemTempalte and EditorTempalte. In the ItemTempalte you can add a TextBlock and set the StringFormat to format the value while not in edit mode and in the EditorTempalte, you can add a XamNumericEditor and you can set its Mask property, which allows to set the format in edit mode. I have modified the sample application that Anatoli has created for you, to show how you can implement this approach.
Please let me know if you need any further assistance on the matter.
I am using XamGrid and not XamDataGrid. Please provide the sample for XamGrid.