Hi,
I am using Infragistics4 Version 10.3.
I am using WebDataMenu first time and i have a question. I want to display a Menu in multiple tier format like View>>ToolBar>>Menubar. Where "View" is a parent, "Toolbar" is child of "View" and "Menubar" is child of "Toolbar".
I am not sure what should be the format of SQL table to display a menu in this format and how to bind that table with WebDataMenu?
Thanks,
Mits
Hi Mits,
this forum post, shows how to implement it: http://news.infragistics.com/forums/p/42835/236521.aspx
Hope this helps
Hi Hristo,
This is a good example to bind a Datamenu with SQL Table. However in this example the menu is working up to one layer. My problem is what if we want to display multi tier menu. For example File>>New>>New One>>New Two. How can we set up this kind of format?
Thanks for the help. I tried the different approach and that has also fixed my problem. I did self related data relation. In this we require only one sqldatasource and datarelation. Below is a sample code of it.
<ig:DataRelation ChildColumns="ParentId" ChildDataViewID="SqlDataSource1_DefaultView" ParentColumns="Id" ParentDataViewID="SqlDataSource1_DefaultView" />
Regards,
in order to get N levels you will have to modify the DataRelations as Edney Holder suggests in this forum post: http://forums.infragistics.com/forums/t/55832.aspx
<DataRelations> <ig:DataRelation ParentDataViewID="vRoot" ParentColumns="Id" ChildDataViewID="vChild" ChildColumns="ParentId" /> <ig:DataRelation ParentDataViewID="vChild" ParentColumns="Id" ChildDataViewID="vChild" ChildColumns="ParentId" /> </DataRelations>
Here is the modified sample