Replies: 6 comments 3 replies
-
Hi, Getting the DataGrid to scoll is definitely possible here as well. Just resize your browser window and you can see that happening with the paramer/events documentation (which are displayed with DataGrids): We will certainly leave your tip here for others to find, but it is not something we are planning to include in the library itself at the moment as it can be solved in your regular app/site css. |
Beta Was this translation helpful? Give feedback.
-
I solved it for fluentgrid, so it only adds the horizontal scrollbar if needed, but I will need to test it more ... this information is for anyone interested:
|
Beta Was this translation helpful? Give feedback.
-
@AJ1000 is there also a way to reduce the spacing between the items? You see I have a lot of unneccessary whitespace here: |
Beta Was this translation helpful? Give feedback.
-
@vnbaaij it would be great if this can be added to the docs as in my option this is a very common use-case. |
Beta Was this translation helpful? Give feedback.
-
Sorry for not responding sooner, (I am also AJ1000, when I am using my home PC, and coderdnewbie when using the work PC), I have just been made redundant and am still in shock. I have tested the solution for a few weeks, and it is robust but if you find any problems, let me know. Like I said in my original post, I have only minor css skills, so there maybe more efficient ways of solving this problem, but my solution seems ideal. In the documentation, this would be something like 'Adding a responsive horizontal scrollbar to the FluentDataGrid'. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I am sure something will turn up. |
Beta Was this translation helpful? Give feedback.
-
Firstly, I am a backend developer with minor skills in the frontend. However when trying out the quickgrid control itself, I managed to get the horizontal scrollbar to automatically work, using just CSS. I was unable to do the same with fluentgrid, and am not sure why but I came up with the classic alternative where the width is specified and the horizontal scrollbar appears as expected.
This discussion is about me wanting to give back to the project, and if you can use the strategy in fluentgrid to make it better than that is beneficial to everyone. If not, then that is fine as well. The new css is .table-wrapper and .table-wrapper2.
Or perhaps a css expert can make it work with fluentgrid like I have it working with quickgrid?
Here is the quickgrid code:
Here is the css code:
Beta Was this translation helpful? Give feedback.
All reactions