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
185
Weblistbar item get disabled
posted

I have an issue regarding ultraweblistbar, I have  items in the listbar. When i click one item and corresponding page wil get opens after that  i cannot click the same item on listbar again. Eg: when i Click on My Section and i reach the mysection page, i am not able to click the item (My Section) again, it is get disabled.I have given  RenderAnchors="true" but then page is get opened in new tab and in listbar control.How to avoid page get opened in new tab? pls provide a solution Thanks

 

I have created a masterpage with webtab

 

<igtab:UltraWebTab TextOrientation="Horizontal" ID="UltraWebTab1" runat="server"        AsyncMode="On" AutoPostBack="True" 

                OnTabClick="UltraWebTab1_TabClick">

                <Tabs>

                    <igtab:Tab Text="My Details">

                        <ContentPane>

                            <asp:ContentPlaceHolder ID="ContentPlaceHolder1"  runat="server">

                            </asp:ContentPlaceHolder>

                        </ContentPane>

                    </igtab:Tab>

                    <igtab:Tab Text="Admin">

                    </igtab:Tab>

                   

                </Tabs>

                <RoundedImage FillStyle="LeftMergedWithCenter" NormalImage="ig_tab_winXPo3.gif" SelectedImage="ig_tab_winXPo1.gif"

                    HoverImage="ig_tab_winXPo2.gif" LeftSideWidth="7" RightSideWidth="6" ShiftOfImages="2" />

                <SelectedTabStyle>

                    <Padding Bottom="2px" />

                </SelectedTabStyle>

                <DefaultTabStyle Height="22px" Font-Names="verdana" Font-Size="9">

                    <Padding Top="2px" />

                </DefaultTabStyle>

                   

            </igtab:UltraWebTab>

 

 

And in another aspx page 

 

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<div>

 <div id="divleft" runat="server" style="width: 100%; float: left">

    <iglbar:UltraWebListbar ID="UltraWebListbar2" runat="server" Height="100%"

        Width="100%" BarWidth="200px" BorderWidth="0px" MergeStyles="true"  Font-Names="Verdana" Font-Size="8pt"

        BorderColor="DimGray" ImageDirectory="images/" SelectedGroup="1"  RenderAnchors="true" >

       

        <DefaultGroupStyle  BackColor="#D7E7F2" >

        </DefaultGroupStyle>

        <DefaultItemStyle Cursor="Default" Font-Size="8pt" Font-Names="Verdana" BorderStyle="None">

            <Padding Bottom="8px" Left="5px" Top="8px"></Padding>

        </DefaultItemStyle>

        <DefaultItemHoverStyle Cursor="Default"  BorderWidth="0px" BorderStyle="None" BackColor="#F0F0F0">

            <Padding Left="4px"></Padding>

        </DefaultItemHoverStyle>

        <DefaultGroupButtonSelectedStyle Cursor="Default"  BorderStyle="None" >

            <Padding Left="4px" />

        </DefaultGroupButtonSelectedStyle>

        <DefaultItemSelectedStyle Cursor="Default"  BorderColor="Black" BackColor="#F0F0F0">

        </DefaultItemSelectedStyle>

        <DefaultGroupButtonStyle Cursor="Default" BorderWidth="1px" BackColor="#F0F0F0" Height="22px">

            <BorderDetails ColorBottom="28, 91, 148" StyleBottom="Solid" />

            <Padding Left="4px" />

        </DefaultGroupButtonStyle>

        <DefaultGroupButtonHoverStyle Cursor="Default" BorderWidth="1px" BorderColor="#1C5B94" 

            BorderStyle="Solid" BackColor="#D7E7F2">

            <Padding Left="4px" />

        </DefaultGroupButtonHoverStyle>

        

        <Groups>

            <iglbar:Group TextAlign="Left" Text="My Section" ItemAlign="left" ButtonStyle-Padding-Left="10px" >

                <Items>

                    <iglbar:Item Text="My Section" Image="./images/topic_marker_blue.gif" TargetUrl="Mysection.aspx" >

                        <Images>

                            <DefaultImage Url="./images/topic_marker_blue.gif"/>

                        </Images>

                    </iglbar:Item>

                </Items>

            </iglbar:Group>

           

                        

            <iglbar:Group Text="My Projects" TextAlign="Left" ItemAlign="left">

                <Items>

                    <iglbar:Item Text="MyProjects" Image="./images/topic_marker_blue.gif" TargetUrl="Myprjts.aspx">

                        <Images>

                            <DefaultImage Url="./images/topic_marker_blue.gif"></DefaultImage>

                        </Images>

                    </iglbar:Item>

                   

                </Items>

            </iglbar:Group>                 

            

        </Groups>

    </iglbar:UltraWebListbar>

    

    </div>

    </div>

</asp:Content>

 

 Can anyone help me with this...

Parents
No Data
Reply
  • 90
    posted

    I encountered the same problem and saw this post of yours with no reply.

    The problem is that the item gets selected once the hyperlink is clicked so next time when you try to click it thinks it's already open (selected).

    I used the the AfterItemSelected() client side funtion to set the item's selected property to false and it works now.

     

    Here is the javascript code i have put on my page :-

     

     

    function

     

     

    AfterItemSelected(objListBar, objItem, objEvent) {

     

     

    objItem.selected = false;

    }

    Hope this helps

Children
No Data