Ejemplo n.º 1
0
        /// <summary>
        /// Adds all addons for the Text component to the current page.
        /// </summary>
        public static async Task IncludeExplicitAsync()   // this component is reusable so we need to explicitly include all js/css
        //await KendoUICore.AddFileAsync("kendo.maskedtextbox.min.js");
        {
            await KendoUICore.UseAsync();// needed for css

            await Manager.AddOnManager.AddTemplateAsync(Controllers.AreaRegistration.CurrentPackage.AreaName, "Text");
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Called by the framework when the component is used so the component can add component specific addons.
        /// </summary>
        public override async Task IncludeAsync()
        {
            await KendoUICore.UseAsync();// needed for css

            //await KendoUICore.AddFileAsync("kendo.maskedtextbox.min.js");
            await Manager.AddOnManager.AddTemplateAsync(Controllers.AreaRegistration.CurrentPackage.AreaName, "Text");

            await base.IncludeAsync();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Called by the framework when the component is used so the component can add component specific addons.
        /// </summary>
        public override async Task IncludeAsync()
        {
            await KendoUICore.UseAsync();// needed for css

            await base.IncludeAsync();
        }