Completed
Last Updated: 01 Mar 2023 12:15 by ADMIN
Release R2.2023-Increment.1(15.Mar.2023)
Andreas
Created on: 24 Feb 2023 08:38
Category: Gantt
Type: Bug Report
0
Setting the sortable configuration for a Gantt column via TagHelpers does not enable sorting for the column.

Bug report

Setting the sortable configuration for a Gantt column via TagHelpers does not enable sorting for the column.

Reproduction of the problem

  1. Run the TagHelper Gantt Basic Usage demo - REPL
  2. Try to sort a column, for example the Start column

Current behavior

Columns are not sorted.

Expected/desired behavior

When sorting is enabled for a column it should be sortable.

Workaround

Set the sortable configuration for the desired columns after initialization of the Gantt component - REPL

    $("document").ready(function(){
        var gantt = $("#gantt").getKendoGantt();
        var options = gantt.options;
        options.autoBind = true;
        options.columns[2].columns[0].sortable = true; //enable sorting for Start column
        options.columns[2].columns[1].sortable = true; //enable sorting for End column
        gantt.setOptions(options);
    })

Environment

  • Kendo UI version: 2023.1.117
  • Browser: [all]
0 comments