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>
Hi Astucia,
Would it be possible for you to also send me a scipt of your database? Your master page code behind (*.cs)? The source files (*ascx) and code behind (*.cs) for menu controls? Are you using a data access tier to access the db? Include that as well. This will enable me to build the project and get it running. This way I can see precisely what's happening with the root menu item on postback.
Sincerely,TroyDeveloper Support Engineer
Hy, Troy
I'll send to you a zip file with the user control containing the webdatamenu and the Masterpage who contains it. You will see 3 more user controls , they have the same structure like the first one.
The file also contains the SQL scripts to the table and the stored procerures.
I hope it's helpful.
(Sorry, I have a pretty bat English jejeje)
My name is Troy and I am a Developer Support Engineer. I would like to help you with this case. Can you send me as much information as possible to help me reproduce the steps you did? I would like to test further to determine if this is indeed a bug. If you can send me a sample, that would be fantastic.
if you are not doing anything in the code behind, this looks like a bug to me caused because of putting menu into table container. Could you try upgrading to latest service release 10.3.20103.2088 and if the issue still persists contact developer support to open a support ticket for you. Also try to put EnableScrolling = false and see if the issue is present?
Thanks,
Lubomir