Hi all,
Can anyone please tell me how to remove a group from the ultraweblistbar by clicking a button?
I believe you can only remove groups from WebListbar in server-side code. To do this, use the Groups.Remove() method using an instance of the group you want to remove, or the Groups.RemoveAt() method using the index of the group to remove.
Hi
Thanks for the quick reply.
i already tried to work this out to remove a group but i get errror as
"Object not set to new instance of an object"...
uwlistcomment.Groups.RemoveAt(i);
If your WebListbar has its ViewType set to ExplorerBar, then the SelectedGroup property is not available.
What's the value of "i" when this exception occurs? I don't recall if it's possible for WebListbar (when ViewType is set to Listbar) is capable of having "no" selected group; if this is possible, then you need to first ensure that a group is selected before you try to remove it.