OnItemClick event not fireing

3 posts, 0 answers
  1. David Blok
    David Blok avatar
    42 posts
    Member since:
    Nov 2009

    Posted 02 Dec 2009 Link to this post

    I have a problem with the onitemclick event.

    It will not fire for some reason.

    Below the control page

    <%@ Control Language="VB" AutoEventWireup="false" CodeFile="verticalmenu.ascx.vb" Inherits="Structures_verticalmenu" %> 
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
    <telerik:RadAjaxManagerProxy ID="ProxyRadMenuvert1" runat="server">  
    </telerik:RadAjaxManagerProxy> 
     
    <telerik:RadPanelBar runat="server" ID="panelmenu1" Width="100%" OnItemClick="RadPanelBar1_ItemClick" /> 
     
     
    <asp:label Runat="server" ID="Label1" Text="Standard"></asp:label> 
     


    Code behind it

    Imports System  
    Imports System.Data  
    Imports System.Data.SqlClient  
    Imports Telerik.Web.UI  
     
     
     
    Partial Class Structures_verticalmenu  
        Inherits System.Web.UI.UserControl  
     
        Private Sub BindToDataSet()  
     
            Dim adapter As New SqlDataAdapter("SELECT * FROM TblPages", _  
                ConfigurationManager.ConnectionStrings("Varodb").ConnectionString)  
     
            Dim Menu As New DataSet()  
     
            adapter.Fill(Menu)  
     
            panelmenu1.DataTextField = "Pagename" 
            panelmenu1.DataFieldID = "ID" 
            panelmenu1.DataFieldParentID = "PageID" 
     
     
     
            panelmenu1.DataSource = Menu  
            panelmenu1.DataBind()  
     
        End Sub 
     
     
        Protected Sub RadPanelBar1_ItemClick(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadPanelBarEventArgs)  
     
            Label1.Text = "Clicked panel item - " + e.Item.Text  
        End Sub 
     
        Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
     
     
            If Not Page.IsPostBack Then 
                BindToDataSet()  
            End If 
     
     
        End Sub 
     
    End Class 
     

    Anyone has a suggestion ?
  2. David Blok
    David Blok avatar
    42 posts
    Member since:
    Nov 2009

    Posted 02 Dec 2009 Link to this post

    I've tested the code now on a aspx page and it works perfectly. So i think it need configuration in the proxymanager.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. David Blok
    David Blok avatar
    42 posts
    Member since:
    Nov 2009

    Posted 04 Dec 2009 Link to this post

    nvm found the problem, a form validator from another user control gave somekind of conflict with the onclick function.
Back to Top