Hi,
I have just started working on custom Control (DataBound). I am
creating Custom Control inheriting DataBoundControl and using inside
Infragistics Controls. I creating a WebPanel then adding A WebTab with
one bound WebCombo to this panel. Then I add this panel to Custom
Control. I am doing all this in PerformDataBinding() overrided event
as follows:
protected override void
PerformDataBinding(System.Collections.IEnumerable data)
{
base.PerformDataBinding(data);
if (data != null)
{
/*Table tbl = new Table();
TableRow row;
TableCell cell;*/
wbcName = new
Infragistics.WebUI.WebCombo.WebCombo("wbcName");
wbcName.SelectedRowChanged += new
Infragistics.WebUI.WebCombo.SelectedRowChangedEventHandler(wbcName_SelectedRowChanged);
wbcName.ControlStyle.Height = 50;
wbcName.ControlStyle.Width = 100;
wbcName.DataSource= data as
System.Collections.ICollection;
wbcName.DataBind();
Infragistics.WebUI.UltraWebTab.Tab tb = new
Infragistics.WebUI.UltraWebTab.Tab("Add");
tbContainer.Tabs.Add(tb);
tb.ContentPane.Controls.Add(wbcName);
tbContainer.Height = 500;
tbContainer.Width = 500;
pnl.Controls.Add(tbContainer);
............................}
I have to populate the other Control in the WebTab with the selection
of this WebCombo. That's why I have handled the SelectedRowChanged()
event of the WebCombo. But when I use this CustomControl on the Page
and select a Row from the WebCombo, the Custom Control is getting
invisible. Even after using refresh option of IE, it doesn't get back.
( I am adding the Custom control on the Webpage at design time not at
the Run time.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
".NetIndia" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/TechdotNetIndia?hl=en
http://www.satheeshbabu.com
http://www.satheeshbabu.blogspot.com/
-~----------~----~----~----~------~----~------~--~---