Welcome Guest Search | Active Topics | Sign In | Register

combine dataset blinding and xml blinding Options
ENERTECH
Posted: Tuesday, September 28, 2010 10:17:31 AM
Rank: Newbie
Groups: Member

Joined: 11/24/2008
Posts: 2
Hi

Can I combine two modes of datablinding(datatable on sql and xml file) on a same eo menu, and how can i do this.

Thanks.
eo_support
Posted: Tuesday, September 28, 2010 10:30:31 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can try to bind to the XML first, then bind to DB. When you bind to XML, the whole Menu is recreated. However once that is done, you can populate a sub menu, not the whole menu from your DB. You would do this by setting a MenuGroup's DataSource and calling DataBind on that MenuGroup object. For example, the following code recreates the sub menu for the first top level menu item only:

Code: C#
Menu1.Items[0].SubMenu.DataSource = your_data_source;
Menu1.Items[0].subMenu.DataBind();


Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.