View Full Version : TabPanel.UnhideTabStripItem(tab) bug

Yauhen Papou
Mar 08, 2009, 6:38 PM
Hi coolite dev team.

<div style="text-align: left;" id="result_box" dir="ltr">I found a bug in the public virtual void UnhideTabStripItem(Tab tab) method, TabPanelBase class.

In 0.7v it looks like

public virtual void UnhideTabStripItem(Tab tab)

In this method you need to change tab.ClientID to tab.ID because in the method

public virtual void UnhideTabStripItem(string id)
Tab tab = Coolite.Utilities.ControlUtils.FindControl(this, id) as Tab;

if (tab == null)
throw new InvalidOperationException(string.Format("The '{0}' Tab does not exist with the '{1}' TabPanel.", id, this.ID));

string template = "{0}.unhideTabStripItem(\"{1}\");";
this.AddScript(template, this.ClientID, tab.ClientID);

Coolite.Utilities.ControlUtils.FindControl cannot find control by it's ClientID.

<div style="text-align: left;" id="result_box" dir="ltr">I hope this was helpful for you.