Client OnRowDropping handler is called when other events occur

3 posts, 0 answers
  1. Paul
    Paul avatar
    48 posts
    Member since:
    Dec 2008

    Posted 15 May 2016 Link to this post

    I have a RadGrid with several client event handlers enabled. If I include an OnRowDropping handler, it gets invoked before either of the other two event handlers (OnRowDblClick and OnRowContextMenu). If I remove the OnRowDropping handler the other two work correctly.

    <telerik:RadGrid ID="RadGridPapers" runat="server"
        OnItemDataBound     ="RadGridPapers_ItemDataBound"
        OnItemCommand       ="RadGridPapers_ItemCommand"
        OnRowDrop           ="RadGridPapers_RowDrop"
        <clientsettings AllowRowsDragDrop="true">
            <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
        <MasterTableView Name="MasterTablePapers"
            Caption="Unscheduled Abstracts (double-click to schedule next, or drag to a timeslot above, or right-click to assign status)"
            NoMasterRecordsText="(No unscheduled Abstracts in this session.)"
            AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="false"
            AllowPaging="false" AllowSorting="false" AllowFilteringByColumn="false"
            TableLayout="Fixed" Width="100%"
                        <telerik:GridGroupByField FieldAlias="Status" FieldName="dispositionName" HeaderValueSeparator=": " />
                        <telerik:GridGroupByField FieldName="dispositionID" SortOrder="Ascending" />


  2. Kostadin
    Kostadin avatar
    1733 posts

    Posted 18 May 2016 Link to this post

    Hi Paul,

    The cause for this issue is that the client logic is executed fast enough to create a drag-able row which fires the OnRowDropping client event. A possible solution is to check if the row is dropped on the same row as the dragged one. I will forward this issue to one of our developers and they will investigate the issue further.

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. Paul
    Paul avatar
    48 posts
    Member since:
    Dec 2008

    Posted 22 May 2016 in reply to Kostadin Link to this post

    Thank you Kostadin! I fixed the problem by adding a GridDragDropColumn so the double-click and right-click anywhere else in the row do not initiate the row drag. It's working fine now.
Back to Top