This is a migrated thread and some comments may be shown as answers.

TagHelpers + Deferring

3 Answers 294 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alaa Masoud
Top achievements
Rank 1
Alaa Masoud asked on 13 Aug 2016, 10:29 AM

Hello,

In HTML helpers we could for example write:

@(Html.Kendo()
     .DatePicker()
     .Name("datepicker")
     .Deferred()
)
 
...
 
@section scripts {
    @Html.Kendo().DeferredScripts()
}

 

To have scripts deferred. How can we accomplish the same thing with tag helpers?

<kendo-datepicker name="datepicker" />

 

Thanks,

Alaa

3 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 16 Aug 2016, 10:34 AM
Hello Alaa,

In the context of AnglurJS directives you should use the following approach for delaying the widget initialization:
If you have something different in mind, please provide some additional information on the requirement.


Regards,
Konstantin Dikov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 30 Aug 2016, 06:16 PM

I just hit this too, it's not angular, it's dotnetcore tag helpers

So like the taghelper or "<kendo-numerictextbox name="currency" format="c" min="0"
                                          enable="true" max="100" value="30"></kendo-numerictextbox>"

Generates the attached code instead of throwing the scripts into the bottom of the page?

 

 

0
Marin
Telerik team
answered on 01 Sep 2016, 10:33 AM
Hello,

We recommend using the HTML helpers syntax if you need to call .Deffered()
More information can be found in this help article:
http://docs.telerik.com/kendo-ui/aspnet-mvc/mvc-6/known-issues

Regards,
Marin
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Alaa Masoud
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Marin
Telerik team
Share this question
or