[Data Grid] In Japanese, the headers is garbled when saved configs and redisplayed.

Forge Component
(28)
Published on 24 Sep (3 weeks ago) by OutSystems R&D
28 votes
Published on 24 Sep (3 weeks ago) by OutSystems R&D

Hi there,

As shown in the attached capture, In Japanese, the headers is garbled when saved configs and redisplayed. Is there a solution?

Before redisplay


After redisplay


Best Regards,

Kosuke Ogawa

Solution

Self-solve with the following methods!

  1. Clone DataGridComponent (rename to DataGridComponentJp)
  2. Logic > Server Action > SaveGridConfigurations > TextToBinaryData > Encoding > "utf-8"
  3. Interface > GridScirpts > GridFramework > JavaScript > 
        loadConfig: function(gridId) {
            ...
            var url = "/DataGridComponentJp/rest/Configurations/...
            ...
        saveConfigHttpRequest: function(gridId, successMessage, errorMessage) {
            ...
            var url = "/DataGridComponentJp/rest/Configurations/...
            ...
        resetConfigHttpRequest: function(gridId, successMessage, errorMessage) {
            ...
            var url = "/DataGridComponentJp/rest/Configurations/...
  4. Publish & Manage Dependencies...


Solution