Donot display the pages in page tree which are unchecked "Display in Menu"



Iam facing an issue in binding the top menu items (MenuList) to leftnenu (PageTree).

The code which i had written to bind the controls is as fallows:

SubMenu.PageLink = MenuList.OpenTopPage;


The code works fine.

But if the page "Display Visible in Menu" property is even unchecked it is still displaying in PageTree which i donot want to.

Could you please help me in solving this problem.

Sep 29, 2009 15:08
You have a property on the pagetree that says "EnableVisibleInMenu", set it to true.
Sep 29, 2009 15:11

Thanks for the reply.

Yes... "EnableVisibleInMenu" do helps in solving my problem if i read the pages one by one.

But here iam directly assigning like SubMenu.PageLink = MenuList.OpenTopPage;

So i cann't check that condition.

Can you please provide another snippet code for alternative to above code condition i.e which you suggested.

Thanks in advance. 


Sep 29, 2009 16:13

SubMenu.EnableVisibleInMenu = true;

before databinding.

Sep 29, 2009 16:15

Thanks for the reply. But the given code is not working for me.

Do you have any code snippet or link where i donot want to show the pages in left menu (sub menu) whose DisplayInMenu is unchecked.

Sep 30, 2009 6:37
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.