GithubHelp home page GithubHelp logo

devexpress-examples / xaf-how-to-sort-a-listview-in-code Goto Github PK

View Code? Open in Web Editor NEW
2.0 55.0 1.0 250 KB

How to sort a list view by a class property and prevent users from changing the sorting themselves

License: Other

C# 72.94% HTML 27.06%
dotnet xaf framework expressapp expressapp-framework expressappframework

xaf-how-to-sort-a-listview-in-code's Introduction

Files to look at:

How to sort a ListView in code

Scenario: You need to sort a list view by a class property and disallow end-users from changing this sorting themselves.

Solution: Implement a ViewController and configure the sorting operation for this ListView's required column in the application model. You can do this in the SortListViewControllerBase class that is platform-agnostic. After that, implement platform-dependent controllers that disable the sorting functionality in the grid.

This approach can be used to sort both nested and root ListViews, and also will work if the server mode is enabled in the ListView.

See Also:
How to sort a nested ListView at the business objects level, in code
How to prevent sorting and grouping by certain columns in a ListView
How to: Access the Application Model in Code


xaf-how-to-sort-a-listview-in-code's People

Contributors

andreykozhevnikov avatar devexpressexamplebot avatar goshafighten avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kashiash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.