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
20
Working with Ultraweblistbar
posted

Hi,

        I am working with UltraWebListBar. I want to make visible or invisible a specific group and even the list of items under a group based on the criteria's using programming. Can any one please help me out in doing this.

Regards,

Dheeraj

  • 995
    posted

    Hi,

    The Group or Item objects are don’t support this functionality. If your project requirements allow you can remove and add programmatically at specific point like this:

    -          You need to create and add Group at runtime:

    Group group = new Group();

    if (!IsPostBack)

    {

        group.Text = "Group2";

        group.Items.Add("item1", "item1");

        group.Items.Add("item2", "item2");

              group.Items.Add("item3", "item3");

        this.UltraWebListbar1.Groups.Insert(1, group); 

    }

    And, you can remove and add programatically later:    

    this.UltraWebListbar1.Groups.RemoveAt(1);        this.UltraWebListbar1.Groups.Insert(1, group);