OnItemClicked not firing inside of Datagrid

2 posts, 0 answers
  1. Joseph
    Joseph avatar
    1 posts
    Member since:
    Jul 2010

    Posted 24 Feb Link to this post

    I have a RADMenu inside of a ASP.NET Datagrid header temple. I can't get my event to fire
    <telerik:RadMenu ID="SubmitDateContextMenu"  
                                           CollapseDelay="2000"
                                           CollapseAnimation-Type="None"
                                           ExpandDelay="200"
                                           ExpandAnimation-Type="None"
                                           DefaultGroupSettings-OffsetX="0"
                                           EnableViewState="true"
                                           runat="server"
                                           Flow="Horizontal"
                                            OnItemClick="ContextMenu_MenuItemSelected"
                                           >
                                           <Items>
                                               <telerik:RadMenuItem ImageUrl="~/images/Buttons/contextmenu_up.png" Text='SUBMISSION_DATE'
                                                   meta:resourcekey="SUBMISSION_DATE">
                                                   <Items>
                                                       <telerik:RadMenuItem PostBack="true" ValidateRequestMode="Disabled"
                                                           ImageUrl="~/images/Icons/sortorder_ascending.png" Text='SORT_ASCENDING'
                                                           meta:resourcekey="SORT_ASCENDING" Value="SUBMISSION_ASC"/>
                                                       <telerik:RadMenuItem PostBack="true" ValidateRequestMode="Disabled"
                                                           ImageUrl="~/images/Icons/sortorder_descending.png" Text='SORT_DESCENDING'
                                                           meta:resourcekey="SORT_DESCENDING" Value="SUBMISSION_DES"/>  
                                                        </Items>   
                                               </telerik:RadMenuItem>                                      
                                           </Items>
                                       </telerik:RadMenu>

    Event:

    Public Sub ContextMenu_MenuItemSelected(ByVal sender As System.Object, ByVal e As Telerik.Web.UI.RadMenuEventArgs)
     
         'save the sort order to the user's session
         QueueFilterData.PSTQueueSortID = e.Item.Value
     
         loadPSTResults()
     End Sub

  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 29 Feb Link to this post

    Hello Joseph,

    I am afraid that I was unable to locally replicate the described issue. Please make sure that there are not JavaScript errors on your page, because such problematic behavior may exists if there are any js errors on your page.

    If the problem still persist - isolate it in a simplified runnable sample and provide us with it, so we could examine it locally and pin down the reason for the described problematic behavior.

    Regards,
    Nencho
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top