Hi,
I'm linking TWebButton with id="btn1" into TWebTableControl cell like this:
table.Cells[5,1]:='<button id="btn1"></button>';
but it doesn't work.
I think that it is general problem because e.g. TWebLinkLabel has the same problem.
Could you check this ?
Regards,
Is it workaround or is this normal way for objects inside table cell?
The alternative is via event OnGetCellChildren
An example is explained here:
Ok ... thanks ... but last question.
When I create button dynamically like your code
wb := TWebButton.Create('btn');
should I free button object like this
wb.Free;?
and what is the best place (event) when I should do this?
when you would remove the cell value in the TWebTableControl that would remove the HTML BUTTON element.