Hi there, I'm using the NetAdvantage 9.2. WebDataMenu control that is bound to a WebHierarchicalDataSource control. My webdatamenu has a data menu item called REPORTS, which has child data menu items. Some of these child data menu items also contain additional data menu items like the below scenario:
Reports
-> Detail Reports Group 1->
Detail Report#1a
Detail Report#2a
Detail Report#3a
è Report#1
è Report#2
è Report#3
-> Detail Reports Group 2->
Detail Report#1b
Detail Report#2b
Detail Report#3b
Is there a way to determine whether or not a clicked item has any child items on the client side. For instance, in my above situation, I want to know if the menu item clicked has any child data menu items in the ItemSelected and ItemClick client side events.
If anybody can provide me some help I would greatly appreciate it.
Thank you so much.
Thanks Guys. I really appreciate your help.
Hello Henry,
Let us know if you have further questions with this issue.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
HI,
Here is a javascript function that checks for children of a item.
<script type="text/javascript"> function WebDataMenu1_ItemClicked(sender, e) { var item = e.getItem(); if (item.hasChildren()) { alert("yes children"); } else alert("no children"); } </script>
Sincerely,
Matt
Developer Support Engineer,