Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
dynamically insert web control inside a Group in UltraWebListbar (like UltraWebTree)
posted

Hi ,

        I am developing a web page where I had dynamically created a ultraweb tree inside a group in the ultraweb list bar. In the  ultraweb list bar group I am able to trigger the events for the collapse and expand. I had also tired to trigger the click event of the group but unfortunately it doesnt work.
Do you have any suggestions for this issue.?
It would be great help if you can help me with few sampe codes of dynamically adding a Ultra Web Tree In a Ultra Web List Bar.
 
 
 
Parents
No Data
Reply
  • 28407
    posted

    Hi, Here is code to dynamically add a webtree to a Group.

    protected void Page_Load(object sender, EventArgs e)

    {

    mytemplate mtemp =
    new mytemplate();

    UltraWebListbar1.Groups[0].Template = mtemp;

     

    }

    protected void UltraWebListbar1_GroupClicked(object sender, Infragistics.WebUI.UltraWebListbar.WebListbarGroupEvent e)

    {

    }

    public class mytemplate :ITemplate

    {

    #region ITemplate Membersvoid ITemplate.InstantiateIn(Control container)

    {

    UltraWebTree uwt = new UltraWebTree();

    Node node = uwt.Nodes.Add("root1");

    node.Nodes.Add("child1");

    node.Nodes.Add("child2");

    container.Controls.Add(uwt);

     

    //throw new Exception("The method or operation is not implemented.");

    }

    #endregion

    }

    }

Children
No Data