Hi all,
I currently have a problem with the use of HighlightPath()
When I click on a item of my menu, it works good
When I click on a second item, it highlights too but the first is still highlited.
Here is a code sample :
Default.aspx :
Default.aspx.vb :
Can you tell me what is wrong with my code ?
Thank You
Julien.
I currently have a problem with the use of HighlightPath()
When I click on a item of my menu, it works good
When I click on a second item, it highlights too but the first is still highlited.
Here is a code sample :
Default.aspx :
<telerik:RadMenu ID="RadMenuClients" runat="server" > <Items> <telerik:RadMenuItem Text="Toto" Value="0" /> <telerik:RadMenuItem Text="Titi" Value="1" /> <telerik:RadMenuItem Text="Tata" Value="3" /> <telerik:RadMenuItem Text="Tutu" Value="2" /> <telerik:RadMenuItem Text="Tete" Value="4" /> </Items></telerik:RadMenu>Default.aspx.vb :
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'Highliting Dim currentItem As RadMenuItem = RadMenuClients.Items.FindItemByValue(Session("idSel")) If currentItem IsNot Nothing Then currentItem.HighlightPath() Else RadMenuClients.Items.FindItemByValue(0).HighlightPath() End IfEnd Sub Protected Sub RadMenuClients_ItemClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs) Handles RadMenuClients.ItemClick Session("idSel") = e.Item.Value End SubCan you tell me what is wrong with my code ?
Thank You
Julien.