How to display icons in the WebDataMenu items?
Hi Avinash,
You can add icons to menu items using the ImageUrl property:
<ig:DataMenuItem Text="Documents" ImageUrl="ig_res/Default/images/igdt_folder.gif" > </ig:DataMenuItem>
Here is a demonstrative sample of this - http://es.infragistics.com/products/aspnet/sample/data-menu/data-binding. Also you could use templates - http://es.infragistics.com/products/aspnet/sample/data-menu/templates.
Please do not hesitate to ask if you have any questions.
Hello Avinash,
Let me know if you need any further assistance with the matter.
No, I want to give my own path for Images. And when I set ImageURL="/Images/Icons/home.png", it appends "ig_res/Default" before my path, and my images are not shown.
I investigated to override this path and found that, we can override it through config file, but it overrides for all the infragistics controls of the project. I want to override it only for WebDataMenu control, and which is not working.
If you need any other questions, please let me know.
Hi,
Try setting ImageURL="~/Images/Icons/home.png".
Hope this helps.