New to Telerik UI for ASP.NET AJAX? Start a 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:
-
The instance of the Gantt control firing the event.
-
An eventArgs parameter that represents the options object that will be passed to the Kendo UI Gantt constructor
ASP.NET
<telerik:RadGantt RenderMode="Lightweight" runat="server" id="RadGantt1" OnClientKendoWidgetInitializing="OnClientKendoWidgetInitializing">
</telerik:RadGantt>
JavaScript
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
}