Display Large Amount of Data in Visualforce always create problem. There are many limits which we need to overcome to show data in page. In Lightning we can use Datatable component with Lazy loading to show infinite records. Wew can also include sorting as well.
Today We will create a Lightning Datatable with generic sObject so that you can use that with any sObject. This Datatable also include selection of records,Sorting. With some tweaks we can also include inline editing as well. As we load data partially and once load we keep the data in the list so it is very responsive. Below I have shared the code as well.
This code is very simple. Most of the functionality is provided by component itself. We just tweak it as per our requirement. As the number of components are increasing day by day . They are making Lightning a very good choice for long run.
I have created a upgrade version of this component with action, inline editing. For more details you can check this post.
Did you like the post or want to add anything. Just let me know in comments section. Happy Programming 🙂