This content has been marked as final. Show 3 replies
it depends on where are you using this component.
first you get the instance of the "Hmenu" itself and refer to the linkbar:
as this linkbar would have public access level.
thanks for this guidance but i have still a problem
that i want to addchild from as page
i am attached code for explain u
i think, something is wrong in the approach itself.
when you include the code, you do not need to create a new instance of Hmenu. Instead, you can simply use lnkBar .addChild(), because the this code is of your Hmenu itself.
But i suggest you to use dataprovider for the linkbar instead of looping through the categories and adding the child.
you just declare xmlData as Bindable and provide it as dataProvider of the linkbar.
hope it works.