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
12004
Changing an inline css style of an item selected dynamically.
posted

How to change an inline style of an item selected dynamically.

Parents
  • 12004
    posted

    This can be handled ItemSelected client side event:

    function WebDataMenu1_ItemSelected(sender, eventArgs)
    {
     ///<summary>
     ///
     ///</summary>
     ///<param name="sender" type="Infragistics.Web.UI.WebDataMenu"></param>
     ///<param name="eventArgs" type="Infragistics.Web.UI.DataMenuItemCancelEventArgs"></param>

        eventArgs.getItem().get_element().style.backgroundColor = 'red';
    }



    Within eventArgs you can get the item and it's dom element. Within the dom element contains the style attribute that will change for example the background color.

    WebDataMenu_CS.zip
Reply Children
No Data