Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pau 14 posts 75 karma points
    Apr 30, 2015 @ 10:58
    Pau
    0

    Angular datatables in umbraco

    Hi all, 

    I'm trying to use angular datatables on umbraco, but i don't know how.

    I tried to include angular-datatables.js and serversideDTController.js in my project and package manifest, but it didn't work, i had this error when i launch umbraco:

    Uncaught TypeError: Cannot read property 'Api' of undefinedinitAngularDataTables @ angular-datatables.js?cdv=886402897:507d 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 30, 2015 @ 11:20
    Jan Skovgaard
    0

    Hi Pau

    Can you share the code you're using? And is this something you're adding in the /App_Plugins/ area or where are you placing the things?

    /Jan

  • Pau 14 posts 75 karma points
    Apr 30, 2015 @ 11:50
    Pau
    0

    The code is exactly like this: http://l-lin.github.io/angular-datatables/#/serverSideProcessing

    and im adding this in my /App_Plugins area yes.

    i downloaded the angular-datatable.js to include it like this:

    angular.module('umbraco', ['datatables']) .controller('ServerSideProcessingCtrl', ServerSideProcessingCtrl);

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 30, 2015 @ 12:40
    Jan Skovgaard
    0

    Hi Pau

    What does your package.manifest look like?

    /Jan

  • Pau 14 posts 75 karma points
    Apr 30, 2015 @ 13:02
    Pau
    0

    I added some more datatables javascript, and my problem now is the lazyload:

    GET http://localhost:65055/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.renderer.js?cdv=886402897 load @ lazyload.js:260

    The same message with all the javascripts, and then it says:

    Error: Argument 'ServerSideProcessingCtrl' is not a function, got undefined

    the manifest looks like this:

    {

    javascript : [

    '~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/jquery.dataTables.min.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.util.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.options.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.instances.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.factory.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.renderer.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/angular-datatables.directive.js','~/App_Plugins/BlogShop/backoffice/BlogShopTree/SubMenuViews/js/serverSideProcessing.js'

        ] 

    }

  • Pau 14 posts 75 karma points
    May 04, 2015 @ 11:10
    Pau
    0

    If anyone know the steps that i need to follow to include http://l-lin.github.io/angular-datatables/#/serverSideProcessing in my umbraco project, please help me

  • Pau 14 posts 75 karma points
    May 13, 2015 @ 08:56
    Pau
    100


    In case of anyone having the same problem, or something similar, here is the solution:

    http://stackoverflow.com/questions/30187977/use-angular-datatable-in-umbraco-7-custom-section

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies