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
135
dynamically creating ultra web listbar groups & items
posted

My question is: when dynamically creating groups and items, what is the object type for the new group or new item?

Dim grp As New ???????

'set group properties 
grp.

'add group to web listbar
uwlMembers.Groups.Add(grp)

AND

Dim itm As New ???????

'set item properties 
itm.

'add item to web listbar group
uwlMembers.Group(0).item.Add(itm)

Thanks!!!!
Brandy 

 

Parents
No Data
Reply
  • 7694
    posted

    Hello,

    That is the code for adding dynamically groups and items in UltraWebListbar:

    protected void Page_Load(object sender, EventArgs e)

        {

            int length = 10;

            for (int i = 0; i < length; i++)

            {

                UltraWebListbar1.Groups.Add(string.Format("Group " + i));

                for (int j = 0; j < length; j++)

                {

                    UltraWebListbar1.Groups[i].Items.Add("Item " + j + " of Group " + i);

                }

            }

        }

Children
No Data