Link to home
Start Free TrialLog in
Avatar of puneet kumar
puneet kumarFlag for India

asked on

Like DataTable how can i make Tabular structure by using Div only

H team i worked with DataTable its a tabular structure i wan to do the  same thing with div only how can i implement it .
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Can you give us a use case so we know what you are wanting to do?
Avatar of puneet kumar

ASKER

want show a database table data to jsp page having each and every row having a single check box.
Why don't you want to use a table?

Your answers are not very detailed - it will make a big difference if you can outline what it is you are trying to do so we don't have to go back and forth with questions just trying to understand what it is you are asking.
i want to create table with div only not using any table .
@puneet,

I really want to help you but you need to help my by providing the information that I need to answer your question.

For experts to be able to assist you they need to understand your problem - it may be clear to you why you want to do something but we don't have the detail on your project that you have - so you need to help us.

When someone asks you why you want to do something - for instance in the case of your question re the Data Tables to Div - give us an explanation of the why you want to do it that way.

i want to create table with div only not using any table .
We already know this - it was in your opening question.

What is not clear is why do you want to do it this way.

It is possible but cumbersome for a number of reasons so we could give you a solution and it is wrong because we did not have all the information.

Give us an example of your data, what layout you want and why you don't want to use a table.
Hi,

You can take inspiration from this example  https://jsfiddle.net/lenamtl/0w5on341/
It's display table info in card view or switch to  table view so it use a second template display and it's using Datatables.
So it can keep several features of Datatables, note some features may require some custom code for the custom card view.

Datatables have very extensive documentation and very flexible when you know all features
info about checkbox selection: https://datatables.net/extensions/select/examples/initialisation/checkbox.html
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.