Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
Attributes of WebDataMenu are not rendered to HTML code
posted

Dear Team

I am trying to migrate an old application which uses Infragistics 2011 controls to the new version. Therefore I have to migrate the old menu controls to the new WebDataMenu. Unfortunately, the old tag property that could be used for the MenuItems has not been replaced by an alternative.

I need to pass some additions information to the Client. As the DataItem property is not written to the HTML stream, I tried the Attributes collection, which, according to the documentation, is written to the HTML stream. But in reality it isn't. at least I don't see the data tag in the resulting HTML:

 

DataMenuItem item = new DataMenuItem();
item.Attributes.Add("data-tag", tag);

Which leaves me with the only (but really ugly) Workaround to set the ToolTip (which will be rendered as a Title tag) or as a CSS class.

Is it really true that there is no other way?

Kevin

Parents
No Data
Reply
  • 8421
    posted

    Hello Kevin,

    The approach you are using should work just fine. I've attached a small sample where I verified this works.

    To determine why this isn't working for you could you please provide me with the build number you are using for the Infragistics controls along with what sort of item the tag entry would be?

    WDMAttributes.zip
Children