Move from WEB Core v. 2.0.5 to 2.1.x and TWebTableControl

Hi,

In attachement simple program to reproduce the problem.

webtablefill.zip (1.7 MB)

The problem is that in version 2.0.5 everything is working fine and I see the dynamically created buttons in the grid like below:

but when I running the same code on 2.1.x i see this:

The buttons are not linked properly by ElementID like in version 2.0.5.

Why, it should work exactly the same like in v 2.0.5?
Because of this, I can't upgrade my web app to a newer version of TMS Web Core framework.

To reproduce:

  1. Compile and run the example program in Web Core v 2.0.5
  2. Click "Fill table" button.
  3. Compile and run the example program in Web Core v 2.1
  4. Click "Fill table" button.

Regards,

I recommend to move your fillTable call to the form's OnShow event.
Now it is happening before the table parent is set and the rerender when the parent is set causes the the custom linked button to be lost.
It is also lighter in the sense you do not have to use an anonymous method for form create handle.

Ok ... thank you very much for the hint, it solved the problem.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.