Double sort arrow when adding initial sort to grid data source

1 Answer 171 Views
Grid
Evan
Top achievements
Rank 1
Iron
Evan asked on 03 Aug 2023, 02:36 PM

ASP 4.8 MVC application using kendo 2023.2.606

Have a page w/ a grid on it - bound to a list in my model - and wanted to add a default sort.  

Here's a stripped down version of my grid:

@(Html.Kendo().Grid(Model.RepList)
    .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.SalesRepname).Title("Sales Rep");
    })
    .Sortable()
    .Pageable()
    .DataSource(dataSource => dataSource
        .Ajax()
        .Sort(sort => sort.Add("SalesRepname").Ascending())
        .ServerOperation(false)
     )
)

 

The default sort works - but the UI presents a double-sort arrow.  Clicking the column again re-sorts the column - flipping both arrows the other direction.  Is there a workaround for this bug to only have one sort arrow?  or is there a fix for this in an upcoming release?

Evan
Top achievements
Rank 1
Iron
commented on 07 Aug 2023, 02:56 PM

turns out this was a known bug

https://github.com/telerik/kendo-ui-core/issues/7319

And it has been fixed in release 2023.2.718.

Updated to the latest release and confirmed that the double sort arrow is no longer present.

1 Answer, 1 is accepted

Sort by
0
Accepted
Evan
Top achievements
Rank 1
Iron
answered on 07 Aug 2023, 02:57 PM

turns out this was a known bug

https://github.com/telerik/kendo-ui-core/issues/7319

And it has been fixed in release 2023.2.718.

Updated to the latest release and confirmed that the double sort arrow is no longer present.

Anton Mironov
Telerik team
commented on 08 Aug 2023, 08:27 AM

Hi Evan,

Yes, you are totally correct. This is a known issue and could be resolved by updating to the latest version.

If further information or assistance is needed, do not hesitate to contact me and the team.


Kind Regards,
Anton Mironov

Tags
Grid
Asked by
Evan
Top achievements
Rank 1
Iron
Answers by
Evan
Top achievements
Rank 1
Iron
Share this question
or