Replies
Hi,
Looking in the provided code snippet, I understand that the cell that would be presented in percentage format is of type string and the value is “LTIRA”. Is that correct? There is no way to format text value as percentage format, because it has to be numeric format.
Looking forward to hear from you.
Hi Marcin,
See the attached sample on the bottom of my post and let me know how it behaves on your side. If you want to get access to the TextBox, you can handle ControlAdded event handler on the UltraTextEditor where in the arguments you can find the TextBox itself. You can also set to false UseOsThemes on the UltraTextEditor which will prevent applying the system colors on the appearance objects.
Attachments:
Hi Marcin,
You do not have to change the foreground color of the TextBox as the UltraTextEditor has such appearance property that controls this visual effect. According to your scenario, it has to be set only in edit mode. Here is a code snippet.
Hi Luo,
Thank you for posting in our forums!
There isn’t a known tool for upgrading a Windows Forms application to HTML5 application and such process will depend on the Windows Forms application’s architecture and its components.
In general, you can take a look at this Infragistics white paper about migrating Desktop to Web.
Please let me know if you have additional questions regarding this matter.
Hi San,
In order to enter into cell’s edit mode, you have to ensure that two conditions are applied. First, the UltraGrid should be focused and second, the targeted cell should be activated. Therefore, I have made some modifications on the sample project to explicitly apply these conditions. Now when you click on the edit mode, the add new row template’s second cell is activated and ready to be edited.
Instead of using the BeforeCellDeactivate event, I moved the logic into BeforeExitEditMode and now the scenario when the end-user hits the enter key is also covered.
Please take a look at the second version of the sample project and let me know if it matches the rest of your requirements.
Hi San,
Thank you for posting in our forums!
I set a condition statement when Enter key is pressed to keep the focus over the add new row and it seems to work as per your requirement.
In addition, you were doing a validation on the entire row, but I recommend you to validate on cell by cell basis. It wouldn’t be a good user experience for the end-user to fill the entire new row and realize that none of the values matches the validation constraints. Using this approach, the focus will always stay on the add new row, after a new one is added to the UltraGrid, because it will be always a valid row.
For further reference, take a look at the attached sample and let me know if my modifications work for you. Of course, if you have any additional questions I would be glad to answer them as well.