power-media / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

The TActivePanel not allow add controls dynamically #405

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Create TActivePanel and TActiveButton

<com:TActiveButton id="btnProcess" 
                   Text = "Process" 
                   onclick ="btnProcess_click"/>

<com:TActivePanel id = "panContent" /> 

2. Add code to btnProcess_click event

public  function btnProcess_click()
{
  $this->panContent->getControls()->add("some control or some html");
}

3. The new control don't is add to ActivePanel

What is the expected output? What do you see instead?

I need add the controls dynamically in the ActivePanel

What version of the product are you using? On what operating system?

PRADO 3.1.10
Linux Mint 12

Please provide any additional information below.

I try using the TButton and It's works fine, the new control is add to Panel, I 
think what the problem only is with the ActiveControls.

Thanks

Original issue reported on code.google.com by jaimea.g...@gmail.com on 27 May 2012 at 10:18

GoogleCodeExporter commented 8 years ago
You need to render() the panel, please have a look at the documentation: 
http://www.pradosoft.com/docs/manual/System.Web.UI.ActiveControls/TActivePanel.h
tml

Original comment by ctrlal...@gmail.com on 29 May 2012 at 10:09