scrollable table in table view
Re: scrollable table in table view
Brilliant. It works well. Thank you.
Re: scrollable table in table view
This is a cool solution
Does anyone have this with the current AppGini version running? Unfortunately it doesn't work that way for me.
Thanks!
Does anyone have this with the current AppGini version running? Unfortunately it doesn't work that way for me.
Thanks!
Re: scrollable table in table view
Hi,
can you tell what is not working.
can you tell what is not working.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: scrollable table in table view
I'm probably doing something wrong. So I want to know if it works with the current AG version
In footer-extras it has no effect on my app, in the table_name.php in the footer I get the error:
Parse error: syntax error, unexpected 'tableview' (T_STRING) in C:\wamp64\www\AppGiniMSY\hooks\todo_de.php on line 75
But if I know that the current version works, I'll try something else
Many greetings,
In footer-extras it has no effect on my app, in the table_name.php in the footer I get the error:
Parse error: syntax error, unexpected 'tableview' (T_STRING) in C:\wamp64\www\AppGiniMSY\hooks\todo_de.php on line 75
But if I know that the current version works, I'll try something else
Many greetings,
Re: scrollable table in table view
Hi,
I would not see why it should not work with the current version. Maybe you can post some screenshots and the code you are using
I would not see why it should not work with the current version. Maybe you can post some screenshots and the code you are using
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: scrollable table in table view
Thank you very much.
I'll try a bit myself first so as not to take up your time
I'll try a bit myself first so as not to take up your time
Re: scrollable table in table view
It works now. Thanks much. I had a conflict with another CSS. I now take this code:
However, I still have a ";" under the table to stand. Can it be that behind EOT no ; comes?
Code: Select all
<?php if ($_REQUEST['Print_x'] != 1) {
echo $_REQUEST['Print_x'];
echo <<<EOT
<style>
.table-responsive { overflow: auto; width: 100%; height: 66vh; }
.table th { background:#eef; }
</style>
<script>
\$j('table').append(\$j('thead'));
// check for IE
if (navigator.userAgent.search("NET4.0") >= 0) {
\$j('div.table-responsive').on('scroll', function() {
\$j('th', this).css('transform', 'translateY('+ this.scrollTop +'px)');
});
}
else {
if (navigator.userAgent.search("Edge") >= 0) { // check for Edge
\$j('.table-responsive').find('th').each(function() {\$j(this).css({"position": "sticky", "top": "0" })});
}
\$j('div.table-responsive').on('scroll', function() {
\$j('thead', this).css('transform', 'translateY('+ this.scrollTop +'px)');
});
}
</script>;
EOT;
} ?>
Re: scrollable table in table view
Hi, glad to read that it still works.
For the ;, I would rather think the ; is the one after the </script>;
For the ;, I would rather think the ; is the one after the </script>;
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: scrollable table in table view
It is it
Thanks very much!!
Thanks very much!!