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

OnClientKendoWidgetInitializing

The OnClientKendoWidgetInitializing occurs just before the Kendo Widget is initialized. The arguments are the options object that will be passed to the underlying Kendo UI Gantt constructor.

The event handler receives two parameters:

  1. The instance of the Gantt control firing the event.

  2. An eventArgs parameter that represents the options object that will be passed to the Kendo UI Gantt constructor

<telerik:RadGantt RenderMode="Lightweight" runat="server" id="RadGantt1" OnClientKendoWidgetInitializing="OnClientKendoWidgetInitializing">
</telerik:RadGantt>
function OnClientKendoWidgetInitializing(sender, eventArgs) {
    var options = eventArgs;
    // change the options object passed to .kendoGantt() method
    // https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt
}

See Also

In this article