Base solution for your next web application
Open Closed

jtable to PrimeNG documentation #3623


User avatar
0
joe704la created

Did you guys put any documentation to switch jtable to PrimeNG. I have several tables I now need to convert and wanted to know if there is anything I need to know as I work towards that.


4 Answer(s)
  • User Avatar
    0
    joe704la created

    As I am trying to switch my tables from the jtable to PrimeNG. I am getting a ERROR Error: Uncaught (in promise): Error: No provider for PediaSuiteServiceProxy!

    Which is my main service. Any ideas why?

  • User Avatar
    0
    llarouche created

    Hello, I am having the same request for documentation.

    I am currently upgrading to the latest release but I have whole bunch of screens with Jtables in them and they are all broken. Can you provide a list of what needs to be included and in which files to have both the PrimeNg DataTable as well as the Jtable work side by side. I will eventually move to the Prime DataTable but not immediately if I can help it.

    Thanks

    Dino

  • User Avatar
    0
    joe704la created

    I figured out my first issue. My service proxy was removed in my merge from proxies.module.ts. But still having some other issues.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @llarouche, joe704la,

    It is hard to prepare a document for this. I think it is better for you to take a sample page like users list (<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/angular/src/app/admin/users/users.component.html">https://github.com/aspnetzero/aspnet-ze ... onent.html</a>) and take the code inside below tags.

    
    ....
    
    

    Then migrate one of your existing list pages according to this one.

    What you will need before this is, you need to of course install prime-ng npm package and you need to use it in your app module just like we do here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/angular/src/app/app.module.ts#L33">https://github.com/aspnetzero/aspnet-ze ... ule.ts#L33</a>

    Then, copy below helper to your project <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/angular/src/shared/helpers/PrimengDatatableHelper.ts">https://github.com/aspnetzero/aspnet-ze ... eHelper.ts</a>

    and use it in app component base like we did here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/angular/src/shared/common/app-component-base.ts#L25">https://github.com/aspnetzero/aspnet-ze ... ase.ts#L25</a>.

    After all, you should be able to use prime-ng datatable in your project.

    I will try to answer your questions if you have any problems on doing that.

    Thanks.