Hi,
I want to add the image url of the DataMenuItem through javascript function dynamically,please help.
Hello Sandy_joggy,
Here you can find a sample where our menu is used like context menu:
http://samples.infragistics.com/aspnet/Samples/WebDataMenu/Display/Context-Menu/Default.aspx?cn=data-menu&sid=71743f53-70a6-4e3e-8eae-4c24c1b404f2
You can change the img with js like this:
menu.getItems().getItem(0).get_element().getElementsByTagName('img')(0).src="/newImg.gif";
I hope this helps.
For any further questions do not hesitate to contact me.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
If you need additional assistance with this matter do not hesitate to contact me.