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

Parents
  • 14517
    Offline posted


    Hello,


    I've put together a sample and tested it based on the code you provided. In the sample I put together the event fires as expected.
    Please test this sample and see if it works on your end. If it works as expected compare the sample against your application to see what is different.

    If the sample doesn't work as expected please provide me more details about your environment so I can test again.

    Thanks,
    Valerie
    Developer Support Engineer

    ItemClick.zip
Reply Children
No Data