New to Telerik UI for ASP.NET Core? Download free 30-day trial

GanttColumnSortableSettingsBuilder

Methods

Compare(System.Func)

The role data attribute of the component that is used in the filter menu, or a JavaScript function which initializes that component.

Parameters

handler - System.Func<Object,Object>

The value that configures the ui action.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                    .Columns(columns =>
                    {
                       columns.Bound(c => c.Title).Sortable(s => s.Compare(
                                  @<text>
                                  function(e) {
                                      // javascript logic
                                  }
                                  </text>
                       ));
                    })
            )

Compare(System.String)

The role data attribute of the component that is used in the filter menu, or a JavaScript function which initializes that component.

Parameters

handler - System.String

The value that configures the ui action.

Example


            @(Html.Kendo().Gantt<TaskViewModel, DependencyViewModel>()
                .Name("gantt")
                    .Columns(columns =>
                    {
                       columns.Bound(c => c.Title).Sortable(s => s.Compare("compareHandler"));
                    })
            )

In this article
Not finding the help you need?