Unplanned
Last Updated: 22 Sep 2022 09:28 by ADMIN
Dev
Created on: 15 Sep 2022 12:36
Category: Gantt
Type: Feature Request
0
Gantt sort event

Is there a possibility to recognize when the user sorts a column in the GanttList?

1 comment
ADMIN
Mihaela
Posted on: 22 Sep 2022 09:28

Hi Renke,

Thank you for submitting the Gantt feature request.

While the sort event is implemented, you could handle the GanttList sorting as follows:

@(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
    .Name("gantt")
    ...
    .DataSource(ds => ds
      ...
      .Events(ev => ev.Change("onDSChange"))
  )
)

<script>
function onDSChange(e) {
  var sortedFields = e.sender.sort();
  if(sortedFields.length > 0) { //The GanttList is sorted
    ...
  }
}
</script>



 

Regards, Mihaela Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.