Excel view with scroll off the side of screen

QuestionsExcel view with scroll off the side of screen
Lucy Hutchinson asked 1 week ago

Hello,

I have used the excel view demo to set up my project in this way, but the size of my column width’s mean that the data needs to scroll off the side of the screen.  Is this possible in excel view, as at the moment the data just disappears off the edge of the screen?

And will it scroll when the user movers the cursor?

 

thanks

Lucy

3 Answers
Abu answered 6 days ago

Hi,

You can check this demo + its code and match with your config.

Demo: https://www.gridphp.com/demo/demos/promo/customers.php
Code: https://www.gridphp.com/demo/demos/promo/customers.phps

Yes, horizontal scroll moves with the cursor.

Lucy Hutchinson replied 15 mins ago

I have a solution.

“https://gist.github.com/lucyhutchinson2024-cyber/c3a82d78e3b8a13aea30a0d30edd4fac.js”

I modified your responsive scroll demo and rebuilt it.

I cannout see any major differences apart from maybe in the link for external libararies at the bottom.

But it works now

Lucy Hutchinson answered 6 days ago

I have tried that, my users want it working like excel, however I have tried your example and all my column widths I set are ignored and it squeezes into the screen and doesn’t scroll?

S7 Calendar

 

Abu Ghufran Staff answered 1 hour ago

Hi,

There was a typo in the code. In following property, shrinkToFit – The “T” should be in caps.
$grid[“shrinkToFit”] = false;

Rest code is working. Columns widths will work as expected after that.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

4 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?