While looking through the 10.3 documentation for the WebDataMenu, I noticed a new function called addItem, which is listed here:
http://help.infragistics.com/NetAdvantage/ASPNET/Current/CLR4.0/?page=WebDataMenu~Infragistics.Web.UI.WebDataMenu~addItem.html
This feature wasn't documented in any of the release notes, and I can't find any sample code, so I am trying to figure out how to use it using the debugger.
Here is what I have observed so far:
Can someone at Infragistics please provide some sliver of sample code that I can use to accomplish the following on the client:
Pretty please with cherries and a Star Wars action figure on top?
Also, the presence of the AJAX call indicates that maybe there is a way to do AJAX load-on-demand of submenu items. That is actually preferable to what I was going to do using a WebService. If you have any documentation on that, I'd be in your debt as well!
Hi Rob,
this API function was present in WebDataMenu since 10.1 version, but it was officially unsupported API. After adding scrolling to web data menu in 10.3 I've noticed this public function and we have decided to fix it. It works properly in the SR release that came out after the new year (2011).
Actually there are two functions:
addItem(text, parent) - adds a menu item with the specified text to the parent, it parent is not specified it add to the root and the item is always added last in the collections. The actual add is made by and AJAX call to the server. I do not find this API very useful, but we have to fix it since it is publicly released and we cannot remove functions, because people may use them.
removeItem(item) - removes the specified item from the menu, again by doing an AJAX call to the server.
Both functions re-render only the sub items part that is affected by the change unless a root level item is added. Then whole menu contents are refreshed.
Hope this helps.
Thanks,
Lubomir
PS: And my advise for customers is to always use the latest SR, because we are constantly adding fixes to the Aikido controls that matter.
Thank you very much for the feedback!
3 quick questions/comments if I may:
If this works as hoped, I plan to use it as a "load on demand" for several submenus, and I think it will be very effective.
-Rob
Hello Rob,
I created a new support ticket on your behalf
CAS-61230-QT10LM
I will submit a new feature request regarding this as Lubomir has advised.
Thank you very much!