We are using TMS Web core 2.8.3. If you take the TMSWeb_GridPanel demo as a basis and add a button with an event handler that removes all 12 controls using TWebGridPanel's RemoveControl method from the grid panel and then adds the same 12 controls again using TWebGridPanel's AddControl method, then there are two controls missing.
Can you share the full code snippet you've tested with?
procedure TForm4.WebButton5Click(Sender: TObject);
begin
WebGridPanel1.RemoveControl(WebLabel1);
WebGridPanel1.RemoveControl(WebEdit1);
WebGridPanel1.RemoveControl(WebButton1);
WebGridPanel1.RemoveControl(WebEdit2);
WebGridPanel1.RemoveControl(WebLabel2);
WebGridPanel1.RemoveControl(WebButton2);
WebGridPanel1.RemoveControl(WebLabel3);
WebGridPanel1.RemoveControl(WebEdit3);
WebGridPanel1.RemoveControl(WebButton3);
WebGridPanel1.RemoveControl(WebLabel4);
WebGridPanel1.RemoveControl(WebEdit4);
WebGridPanel1.RemoveControl(WebButton4);
WebGridPanel1.AddControl(WebLabel1);
WebGridPanel1.AddControl(WebEdit1);
WebGridPanel1.AddControl(WebButton1);
WebGridPanel1.AddControl(WebLabel2);
WebGridPanel1.AddControl(WebEdit2);
WebGridPanel1.AddControl(WebButton2);
WebGridPanel1.AddControl(WebLabel3);
WebGridPanel1.AddControl(WebEdit3);
WebGridPanel1.AddControl(WebButton3);
WebGridPanel1.AddControl(WebLabel4);
WebGridPanel1.AddControl(WebEdit4);
WebGridPanel1.AddControl(WebButton4);
end;
Please wrap the code with
WebGridPanel1.BeginUpdate;
..
WebGridPanel1.EndUpdate;
Ok, thank you.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.