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
310
javascript Error for ComponentArt:Menu
posted

Hi have a control of ComponentArt:Menu. 

this my code

<ClientEvents>

            <ItemSelect EventHandler="contextMenuClickHandler" />

        </ClientEvents>

but on client click I got hte javascript error

Unable to get value of the property 'ContextData': object is null or undefined 

this is my code:

  function contextMenuClickHandler(menuItem)

{

var contextDataNode = menuItem.ParentMenu.ContextData; 

var name = contextDataNode.substring(contextDataNode.indexOf('|')+1,contextDataNode.lastIndexOf('|'));

var id = contextDataNode.substring(contextDataNode.lastIndexOf('|')+1);

..........

........

}

Parents
No Data
Reply Children
No Data