ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Include Frappe Data Table


#1

Hi,
How to use Frappe DataTable using custom script.
I have follow below documentation to installed the DataTable.
currently i am using erpnext version 11


#2

Please Help!


#3

So you have searched and referred to these docs https://frappe.io/datatable/docs/getting-started

This online example https://jsfiddle.net/f4qe6phc/7/

And Faris’s writeup https://medium.com/frappé-thoughts/things-i-learned-building-a-library-for-the-web-6846a588bf53

edit: I wonder whether perhaps demo.erpnext.com includes a working code example?

And not to confuse a DataTable with a DataGrid -

“the datagrid project will replace the report grid in V11”

[Demo] [v7] Editable grids


#4

Thank you so much @clarkej
How can I apply the pagination. For e.g : I want to see only 10 rows on first page then on 2nd page another 10 rows.

Also I don’t want fields to be editable and rows getting removed when we click on Remove Column .
I don’t want some features so how to do that and Please help me with example or code.


#5

DataTable has appendRows method which you can use for paging.

Unfortunately, there is not a standard way to disable the standard column dropdown options like “Remove Column”, probably i’ll make it removable in the next version.

If you could create an issue https://github.com/frappe/datatable/issues it would be easier to track.


#6

Thank for the quick reply @netchampfaris
how to achieve paging? can you please share the script.


#7

Seek posts and users for howto clues? Datatable sometimes not loading


#8

@nikzz this user already suffering for the Solution.


#9

any update for Datatable Paging.