Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I’m trying to modify the QuickGrid component in AspNetCore, which is a virtual table. What I’m trying to do is simulate the responsive capability of DataTables (JQuery), meaning that the table itself, when generated, detects that it’s overflowing its container, and therefore, detects which columns don’t fit within the container, making them invisible. Then, when clicking a button in the row, these columns should be displayed in a list format in a new row.
Thanks to anyone who can point me in the right direction.

What I have tried:

I was able to replicate the responsive action with JS in a normal table, but it doesn't work with a virtual table.
Posted
Updated 2-Oct-23 3:48am
v2
Comments
Graeme_Grant 26-Sep-23 9:32am    
We can't see your screen from here ... What have you tried?

1 solution

You have not posted any code to see why one works and the other does not. Nor have you explained how the "responsive capability" works other than "overflowing its container".

Blazor output is Html & Css. JQuery/Javascript (JS) also uses Html & Css. So the solution should be identical. If works, then Blazor should too.

It sounds like you are using a 3rd-party JQuery-enabled DataTables like this one: DataTables | Table plug-in for jQuery[^] ... this too outputs html and uses css.

If you open the web browser dev tools, you and inspect how it builds its datatables and the css it uses. You can then mimic the output with the ASP.NET Core Blazor QuickGrid component[^].

Alternatively, you could use your own html & css with the ASP.NET Core Blazor QuickGrid component[^]. Here is a video on working with responsive tables: How to create a responsive HTML table - YouTube[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900