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
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]](https://sv1.picz.in.th/images/2022/11/20/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> ';
I'll see if I can recreate this and get back to you
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
(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