Atozed Forums
IWText to show html table not work now! - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: IWText to show html table not work now! (/thread-2922.html)



IWText to show html table not work now! - baxing - 11-19-2022

Hello everyone

Please advice for IWText, before on V15.2.37 I use it for show html table and it show table normally. But now I update IntraWeb to 15.2.66 but it does not show table( show only text which are data in table )
Please help me to fix it.

Thanks


RE: IWText to show html table not work now! - baxing - 11-20-2022

Hello,

Let me explain further as follows.

Below is the html code I used to give values to IWText.text

Code:
  <table class="table">
    <thead>
      <tr>
        <th>Firstname</th>
        <th>Lastname</th>
        <th>Email</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>John</td>
        <td>Doe</td>
        <td>john@example.com</td>
      </tr>
      <tr>
        <td>Mary</td>
        <td>Moe</td>
        <td>mary@example.com</td>
      </tr>
      <tr>
        <td>July</td>
        <td>Dooley</td>
        <td>july@example.com</td>
      </tr>
    </tbody>
  </table>

And below image is result :
[Image: GkO1RR.jpg]
When I use :
- OnClick of button to give value to IWText.text --> show table normal
- OnAsyncClick of button to give value to IWText.text --> not show table, show only data in table

Below is sample code in event OnClick or OnAsyncClick of button

Code:
  TXTLISTGRID.Text := '';

  TXTLISTGRID.Text :=
    '<table class="table"> ' +
      '<thead> ' +
        '<tr> ' +
          '<th>Firstname</th> ' +
          '<th>Lastname</th> ' +
          '<th>Email</th> ' +
        '</tr> ' +
      '</thead> ' +
      '<tbody> ' +
        '<tr> ' +
          '<td>John</td> ' +
          '<td>Doe</td> ' +
          '<td>john@example.com</td> ' +
        '</tr> ' +
        '<tr> ' +
          '<td>Mary</td> ' +
          '<td>Moe</td> ' +
          '<td>mary@example.com</td> ' +
        '</tr> ' +
        '<tr> ' +
          '<td>July</td> ' +
          '<td>Dooley</td> ' +
          '<td>july@example.com</td> ' +
        '</tr> ' +
      '</tbody> ' +
    '</table> ';



RE: IWText to show html table not work now! - Alexandre Machado - 11-20-2022

I'll see if I can recreate this and get back to you


RE: IWText to show html table not work now! - Alexandre Machado - 11-21-2022

Please try version 15.2.68. It fixed a bug in the rendering of some controls, including the IWText control. IW 15.2.67 also contains the same issue, so it won't work in your case. It must be 15.2.68

Please let me know how it goes


RE: IWText to show html table not work now! - baxing - 11-22-2022

(11-21-2022, 03:28 AM)Alexandre Machado Wrote: Please try version 15.2.68. It fixed a bug in the rendering of some controls, including the IWText control. IW 15.2.67 also contains the same issue, so it won't work in your case. It must be 15.2.68

Please let me know how it goes

Thank you. It show table normally if update to version 15.2.68