This is a migrated thread and some comments may be shown as answers.

RadMenuItem - get_value always null

0 Answers 74 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Alejandro
Top achievements
Rank 1
Alejandro asked on 15 Mar 2016, 08:16 PM

Hi

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" />

</item>

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.

 

THanks

 

 

 

 

 

 

No answers yet. Maybe you can help?

Tags
Menu
Asked by
Alejandro
Top achievements
Rank 1
Share this question
or