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

GanttColumnSortableSettingsBuilder

Methods

Compare(System.Func)

The JavaScript function which compares the values.

Parameters

handler - System.Func<Object,Object>

The value that configures name of the handler.

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 name of the JavaScript function which compares the values.

Parameters

handler - System.String

The value that configures the name of the handler.

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?