TagHelpers + Deferring

4 posts, 0 answers
  1. Alaa Masoud
    Alaa Masoud avatar
    9 posts
    Member since:
    Nov 2003

    Posted 13 Aug Link to this post

    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

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1803 posts

    Posted 16 Aug Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 30 Aug Link to this post

    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?

     

     

  5. Marin
    Admin
    Marin avatar
    1045 posts

    Posted 01 Sep Link to this post

    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
Back to Top
UI for ASP.NET MVC is VS 2017 Ready