RadMenuItem - get_value always null

1 posts, 0 answers
  1. Alejandro
    Alejandro avatar
    2 posts
    Member since:
    Mar 2016

    Posted 15 Mar 2016 Link to this post


    I have a RadMenu that is populated from an xml file, the definition of the item is

    <Item Text="Menu" Url="" >

        <Item Text="Item 1" Url="~/test.aspx" Value="itemValue" />


    and then on the clientClicking event I have

     function onClicking(sender, eventArgs) {
                var item = eventArgs.get_item();
                var navigateUrl = item.get_navigateUrl();
                var text = item.get_text();
                var value = item.get_value();
                alert("Text : " + text + "  Value : " + value );   

    I get the text attribute but I always get null for the value attribute. I have been searching but found nothing on how to bind the radmenu to an xml using the value property.









Back to Top