Ticket T1002057
Visible to All Users

DataGrid - How to execute custom logic when clicking header for sorting by column

created 4 years ago (modified 4 years ago)

[DevExpress Support Team: CLONED FROM T1001940: DataGrid - How to add server-side paging]

  1. When click on header for sorting by column, cancel default action, execute my logic so I can fetch data by new sorting

Please let me know is it possible to do so? if possible please give me guidance how to do so? thanks!

Answers

created 4 years ago

Hello,

You can try the recommendations of the following ticket, which is to use the columns.sortingMethod or columns.calculateSortValue options to do custom sorting: dxDataGrid - How to implement custom sorting.

Alternatively, you can notify your DataGrid that the server does sorting by setting the remoteOperations.sorting option to true.

Could you please clarify if this suits your scenario's requirements? This will help us give you a more precise solution.

    Comments (2)
    DD DD
    Delphi Developer 4 years ago

      remoteOperations.sorting should be our solution, I'll test for it, thanks.

      DevExpress Support Team 4 years ago

        Hello,

        You are welcome. If you have questions or need further assistance, we will be happy to follow up.

        Regards,
        Angelo

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.