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
85
Postback Events from WebDataMenu
posted

 

 

 

 

 

I have certain pieces of code that require a Postback, when the ItemClick Event Fires from the Control, it Causes a Postback but never gets into the Code below.

--- Sample of Menu ---

 

 

 

 

 

 

<

 

ig:WebDataMenu ID="WebDataMenu1" runat="server" OnItemClick="WebDataMenu1_ItemClick" Width="100%" StyleSetName="Nautilus"

 

 

SubMenuClosingDelay="10">

 

 

<GroupSettings AnimationType="ExpandAnimation" Orientation="Horizontal" />

<ClientEvents itemclick="iclick" /><Items><ig:DataMenuItem Text="Add Items"

-- End of menu Sample

-- Code Call for Postback

Protected Sub WebDataMenu1_ItemClick(ByVal sender As Object, ByVal e As Infragistics.Web.UI.NavigationControls.DataMenuItemEventArgs) Handles

WebDataMenu1.ItemClick

 

 

If e.Item.Key = "Cancel Assignment" Then

CancelAssign()

 

 

End If

 

 

End Sub