Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
ItemClick event not firing
posted

Hi there

I’m trying to activate the server-side ItemClick event of a WebExplorerBar control so I can log the selected menu options in a table but without too much success so far.

I’ve set the AutoPostBackFlags ItemClick property to ‘on’ and added the following proc to the vb code in the CodeBehind file:-

Protected Sub WebExplorerBar1_ItemClick(ByVal sender As Object, ByVal e As Infragistics.Web.UI.NavigationControls.ExplorerBarItemClickEventArgs) Handles WebExplorerBar1.ItemClick

    Dim label1 As String
    Try
        label1 = e.Item.Value.ToString
    Catch ex As Exception
        label1 = ex.Message
    End Try
End Sub

When you now click on one of the items in the WebExplorerBar it does the postback but it doesn’t ever execute the ItemClick procedure above (I've put a debug breakpoint in the procedure and it never gets there).

I'm sure I must have overlooked something really trivial here but I can't see what it is (I'm fairly new to ASP.NET and this control so apologies if the answer is obvious!).

Any help and guidance would be gratefully received - many thanks.

 

Parents Reply Children
No Data