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
150
WebDataMenu NavigateUrl
posted

 

 

 

 

Hello all,

I have a webdatamenu with items

I need to set its NavigateUrl property in its MenuItem_Click event through javascript.

I do the following but it is not working.

 

Thanks

function

 

 

MenuItem_Click(menu, eventArgs) {

var e = "1";

 

 

switch

(eventArgs.getItem().get_key())

{

 

 

case "Summary":

 

 

menu.getItems().getItem(0).NavigateUrl =

"Summary.aspx"+e ;

break;

}

  • 19693
    posted

    Hello,

    I am just checking about the progress of this issue.

    Did you solve your issue accordingly the information that I provided to you?

    Let me know if you need any further assistance.

  • 19693
    Suggested Answer
    posted

    Hello Sanjay,

    The menu item hasn't a property NavigateUlr on the client side.

    If you want to set this URL inside the client side event you should do it using the get_anchorElement().href:

        function OnItemClick(menu, eventArgs)

            {

                eventArgs.getItem().get_anchorElement().href =  "http://infragistics.com"

            }

    Let me know if you have further questions in this matter.