After updating nuget package, Grid's "Select All" checkbox only selects the first row

1 Answer 85 Views
Grid
Ken
Top achievements
Rank 1
Iron
Ken asked on 14 Jun 2023, 02:29 PM | edited on 14 Jun 2023, 02:29 PM

We recently updated our nuget reference for "Telerik.UI.for.AspNet.Core" to Version="2023.2.606", and the Select All checkbox stopped working.  (It only selects the first row)

It works using Version="2020.2.617"

Here is one of our grids:


            <div class="table table-responsive" style="background-color:#444547">
                @(Html
                    .Kendo()
                    .Grid<ViewModelRedacted>()
                    .Name("grdUnitsList")
                    .Columns(columns =>
                    {
                        columns.Select().Width("20px");
                        columns.Bound(c => c.Id).Hidden(true);
                        columns.Bound(c => c.Name).Title(UnitsController.NameColumn);
                    })
                    .Selectable(s => s.Mode(GridSelectionMode.Multiple))
                    .ColumnMenu()
                    .ToolBar(tool => tool.Excel())
                    .Excel(ex => ex
                    .FileName("Units.xlsx")
                    .Filterable(true)
                    .AllPages(true)
                    )
                    .Navigatable()
                    //.Scrollable()
                    .Pageable()
                    .Filterable()
                    .Sortable(sortable =>
                    {
                        sortable.SortMode(GridSortMode.SingleColumn);
                    })
                    .Resizable(resize => resize.Columns(true))
                    .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(20)
                    .Model(model => model.Id(p => p.Id))
                    .ServerOperation(false)
                    .Read(read => read.Action("GetUnits", "Units"))
                    )
                    )
</div>

1 Answer, 1 is accepted

Sort by
0
Ken
Top achievements
Rank 1
Iron
answered on 14 Jun 2023, 04:13 PM

UPDATE

I needed to update the script references and generate a license key:

 

    <link href="https://kendo.cdn.telerik.com/themes/6.3.0/default/default-main.css" rel="stylesheet" type="text/css" />
    <link href="https://kendo.cdn.telerik.com/themes/6.4.0/default/default-ocean-blue.css" rel="stylesheet" type="text/css" />
    <script src="https://kendo.cdn.telerik.com/2023.2.606/js/jquery.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2023.2.606/js/jszip.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2023.2.606/js/kendo.all.min.js"></script>
    <script src="https://kendo.cdn.telerik.com/2023.2.606/js/kendo.aspnetmvc.min.js"></script>
    <script src="~/js/kendo-ui-license.js"></script>
Anton Mironov
Telerik team
commented on 19 Jun 2023, 06:29 AM

Hi Ken,

Thank you for the details provided.

Yes, you are totally correct - the references should be updated as well.

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

Kind Regards,
Anton Mironov

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