Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datagrid Sorted Group #5516

Open
zandiarash opened this issue May 20, 2024 · 2 comments
Open

Datagrid Sorted Group #5516

zandiarash opened this issue May 20, 2024 · 2 comments
Assignees
Labels
Type: Feature ⚙ Request or idea for a new feature.
Milestone

Comments

@zandiarash
Copy link

Hi community
I used a Datagrid in a project,
I have grouped my table by a column (Days)
image

I want to ask how can I make my days orderByDescending ?

This is how I fill my binded collection

  var res = Faults0DtoAll.OrderByDescending(x => x.FromDateTime).ToList();
  Faults0DtoToShow = new ObservableCollection<Fault0Dto>(res);

And this is my Grid

<DataGrid TItem="Fault0Dto"
          Data="@Faults0DtoToShow"
          Sortable="true"
          PageSize="@totalItems"
          SortMode="DataGridSortMode.Single"
          Striped="true"
          Hoverable="true"
          Groupable
          Responsive
>
    <DataGridColumns>
        <DataGridColumn TItem="Fault0Dto" Field="@nameof(Fault0Dto.ErrorCode)" Caption="کد خطا" />
        <DataGridColumn TItem="Fault0Dto" Field="@nameof(Fault0Dto.ErrorDesc)" Caption="توضیح خطا" />
        <DataGridColumn TItem="Fault0Dto" Field="@nameof(Fault0Dto.FromDayFa)" Caption="روز" SortField="@nameof(Fault0Dto.FromDayEn)" SortDirection="SortDirection.Descending" Displayable="false" Groupable Grouping />
        ...
    </DataGridColumns>
    <EmptyTemplate>
        <p>هنوز داده ای موجود نیست</p>
    </EmptyTemplate>
</DataGrid>

@zandiarash zandiarash added the Type: Feature ⚙ Request or idea for a new feature. label May 20, 2024
@zandiarash zandiarash changed the title Datagrid grouped and sort Datagrid Sorted Group May 20, 2024
@stsrki
Copy link
Collaborator

stsrki commented Jul 30, 2024

@David-Moreira

@stsrki stsrki added this to the 1.6 support milestone Jul 31, 2024
@zandiarash
Copy link
Author

Is there any hope?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature ⚙ Request or idea for a new feature.
Projects
Status: 🔙 Backlog
Development

No branches or pull requests

3 participants