Hi kalum,
Thanks for contacting Syncfusion support.
We can get the text of the clicked menu item using ClientSideOnClick event. Please check the below code.
<ej:Menu ID="Menu1" runat="server" ClientSideOnClick="onCreate">
<Items>
<ej:MenuItem Id="Products" Text="Products"></ej:MenuItem>
<ej:MenuItem Id="Support" Text="Support"></ej:MenuItem>
<ej:MenuItem Id="Purchase" Text="Purchase"></ej:MenuItem>
</Items>
</ej:Menu> |
In Script side, please do the following.
<script>
function onCreate(sender) {
console.log(sender.text + " " + "is clicked");
}
</script> |
We have created a sample for your requirement.
Please refer the below sample link:
Please let us know, if you need any further assistance.
Regards,
Dhivyalakshmi.