Hello,
i use the WebDataMenu with a WebHierarchicalDataSource. On a Click of an Menu-Item, i use the Navigate-Url to sent a Query-String to the same page and load different content. But on each Postback, not only the content also the Menu is loaded. So How can i expand the Menu to some level and select a Node in code behind?
thanks,
Patric
Hi Patric,
Thank you for your reply.
Please feel free to contact me if I can be of further assistnace.
Hello Petar,
thanks for your sample, it point me in the right direction. It works part-time, because i use the click event, after the second click the menu don't expand. The solution for me is a client and server side code, that i explained on my other post: http://es.infragistics.com/community/forums/t/71778.aspx
The problem is the caching of some 'Menu-Structure' so the 'item-selected'-collection freezed the sub-menu. You can see my working solution on http://www.sternenweg.net/detailseite.aspx. The item 'sternenweg' shows the problem area. I must rebind the data on the server, to destroy the client cache.
Your code with the 'get_selectedItem() != null' on the client side Init-Event was the key.
Thanks for the help
Hi, I just want to add that I am almost 100% sure that ItemCollapsing client side event is cancelable! Check out all the client events here. On the client side event handler set the cancel property to true:
eventArgs.set_cancel(true)
This way one will prevent submenu from closing!
Hello Patric,
Apologies for the delayed response.
I am attaching a sample illustrating how the menu may be opened after a postback to the currently selected item (with the querystring changing). Note, however that submenus would be closed after unhovering the menu (this is due to the control's design).
Please feel free to contact me if I may be of assistance.
Thank you for your reply and feedback.
I am still working on this matter and will keep you posted of my progress.