Feb 09, 2009, 7:54 AM
[CLOSED] How to Add Controls in a Row dynamicaly on PageLoad?
Hi,
I want to add controls on a panel dynamicaly on Page_Load.
Now it's working but them appears in a single column and i want them on a single row.
Here it's the current code
Thanks
I want to add controls on a panel dynamicaly on Page_Load.
Now it's working but them appears in a single column and i want them on a single row.
Here it's the current code
foreach (MediaTypeInfo mediaType in GetMediaTypes())
{
Coolite.Ext.Web.Button btn = new Coolite.Ext.Web.Button()
{
ID = "btnMediaType_"+ mediaType.Id,
Icon= mediaType.Icon
};
btn.ToolTips.Add(new ToolTip(){ Title=mediaType.Value });
btn.AjaxEvents.Click.Event += BtnMediaTypeClickedHandler;
this.MediaTypes.BodyControls.Add(btn);
}
this.MediaTypes is a PanelThanks