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
140
WebDataMenu Items Hide
posted

Hello.

I'm using a WebDataMenu (Infragistics4.Web.v10.3, Version=10.3.20103.1013) binding it from a WebHierarchicalDataSource whit 3 bindingssources

When I run my project some times the root menu hide some items and clicking in an item and postback the page, the hidden items unhide or viseversa. (these only in a horizontal orientation and EnableScrolling = "true" propperty)

Aparently the items hide for levels example:

In the root bind I have 6 items and the other levels in the first Item.

At the start the webdatamenu shows all items, after the first click only shows 3 items, the next click shows only 1, the next click, show all items again. (Not always is like these; and it is stronger when the control is in a table or cell with position = right)


<ig:WebHierarchicalDataSource ID="MenuWebHierarchicalDataSource" runat="server"
    style="margin-bottom: 0px">
    <DataViews>
        <ig:DataView ID="SelectLstMenuXIDMenuRootSqlDataSource_DefaultView"
            DataMember="DefaultView" DataSourceID="SelectLstMenuXIDMenuRootSqlDataSource" />
        <ig:DataView ID="SelectLstMenuXIDMenuSqlDataSource_DefaultView"
            DataMember="DefaultView" DataSourceID="SelectLstMenuXIDMenuSqlDataSource" />
        <ig:DataView ID="SelectLstMenuXIDMenuChildrenSqlDataSource_DefaultView"
            DataMember="DefaultView"
            DataSourceID="SelectLstMenuXIDMenuChildrenSqlDataSource" />
    </DataViews>
    <DataRelations>
        <ig:DataRelation ChildColumns="IDElementoPadre"
            ChildDataViewID="SelectLstMenuXIDMenuSqlDataSource_DefaultView"
            ParentColumns="IDElementoDeMenu"
            ParentDataViewID="SelectLstMenuXIDMenuRootSqlDataSource_DefaultView" />
        <ig:DataRelation ChildColumns="IDElementoPadre"
            ChildDataViewID="SelectLstMenuXIDMenuChildrenSqlDataSource_DefaultView"
            ParentColumns="IDElementoDeMenu"
            ParentDataViewID="SelectLstMenuXIDMenuSqlDataSource_DefaultView" />
        <ig:DataRelation ChildColumns="IDElementoPadre"
            ChildDataViewID="SelectLstMenuXIDMenuChildrenSqlDataSource_DefaultView"
            ParentColumns="IDElementoDeMenu"
            ParentDataViewID="SelectLstMenuXIDMenuChildrenSqlDataSource_DefaultView" />
    </DataRelations>
</ig:WebHierarchicalDataSource>
<asp:SqlDataSource ID="SelectLstMenuXIDMenuRootSqlDataSource" runat="server"
    ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
    SelectCommand="SelectLstMenuXIDMenuRoot" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:Parameter Name="IDMenu" Type="Int32" DefaultValue="1" />
        <asp:SessionParameter DefaultValue="" Name="IDCatalogoNivelDeAcceso"
            SessionField="IDCatalogoNivelDeAcceso" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SelectLstMenuXIDMenuSqlDataSource" runat="server"
    ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
    SelectCommand="SelectLstMenuXIDMenu" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:Parameter Name="IDMenu" Type="Int32" DefaultValue="1" />
        <asp:SessionParameter DefaultValue="" Name="IDCatalogoNivelDeAcceso"
            SessionField="IDCatalogoNivelDeAcceso" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>

<asp:SqlDataSource ID="SelectLstMenuXIDMenuChildrenSqlDataSource" runat="server"
    ConnectionString="<%$ ConnectionStrings:DBConnectionString %>"
    SelectCommand="SelectLstMenuXIDMenu" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:Parameter Name="IDMenu" Type="Int32" DefaultValue="1" />
        <asp:SessionParameter DefaultValue="" Name="IDCatalogoNivelDeAcceso"
            SessionField="IDCatalogoNivelDeAcceso" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>


<ig:WebDataMenu ID="MainWebDataMenu" runat="server"
    DataSourceID="MenuWebHierarchicalDataSource" EnableScrolling="True"
    onitembound="MainWebDataMenu_ItemBound">
    <GroupSettings AnimationDuration="300" Orientation="Horizontal" />
    <DataBindings>
        <ig:DataMenuItemBinding DataMember="SelectLstMenuXIDMenuRootSqlDataSource_DefaultView"
            ImageUrlField="sUrlImagen" KeyField="IDElementoDeMenu"
            NavigateUrlFields="sLink" TextField="sNombre" ToolTipField="sNombre"
            ValueField="bMostrarTitulo" />
        <ig:DataMenuItemBinding DataMember="SelectLstMenuXIDMenuSqlDataSource_DefaultView"
            ImageUrlField="sUrlImagen" KeyField="IDElementoDeMenu"
            NavigateUrlFields="sLink" TextField="sNombre" ToolTipField="sNombre"
            ValueField="bMostrarTitulo" />
        <ig:DataMenuItemBinding DataMember="SelectLstMenuXIDMenuChildrenSqlDataSource_DefaultView"
            ImageUrlField="sUrlImagen" KeyField="IDElementoDeMenu"
            NavigateUrlFields="sLink" TextField="sNombre" ToolTipField="sNombre"
            ValueField="bMostrarTitulo" />
    </DataBindings>
</ig:WebDataMenu>