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
25
WebExplorerBar add new item issue
posted

Hello! I have a problem with displaying new items added to the WebExplorerBar control. After adding new item it looks like a hyperlink. But after next PostBack this item becomes normal.

ASPX code:

        <ig:WebExplorerBar ID="WebExplorerBar1" runat="server" GroupContentsHeight=""
            Width="250px">
<ExpandButton AltText="Expand button"></ExpandButton>

<CollapseButton AltText="Collapse button"></CollapseButton>
            <Groups>
                <ig:ExplorerBarGroup GroupContentsHeight="" Text="Group">
                    <Items>
                        <ig:ExplorerBarItem Text="Item">
                        </ig:ExplorerBarItem>
                    </Items>
                </ig:ExplorerBarGroup>
            </Groups>
        </ig:WebExplorerBar>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />

CS code:

        protected void Button1_Click(object sender, EventArgs e)
        {
            ExplorerBarGroup group =  WebExplorerBar1.Groups[0];
            ExplorerBarItem item = new ExplorerBarItem();
            item.Text = "some new item";
            group.Items.Add(item);
        }

What i'm doing wrong?

Thank You!