Skip to content

mbrucco/GridViewScroll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GridViewScroll - NEW

Freeze column and fixed header in Table or GridView

Features

  • Default scrollbar of browser
  • Freeze Header, Column, Footer (only last row)

Getting Started

  1. Download the latest release from GitHub
  2. Include the gridviewscroll.js in web page
<script type="text/javascript" src="js/gridviewscroll.js"></script>
  1. Initialize table with options, then call enhance
<script type="text/javascript">
    window.onload = function () {
        var gridViewScroll = new GridViewScroll({
            elementID : "gvMain" // Target element id
        });
        gridViewScroll.enhance();
    }
</script>

Options

<script type="text/javascript">
    var gridViewScroll = new GridViewScroll({
        elementID : "", // String
        width : 700, // Integer or String(Percentage)
        height : 350, // Integer or String(Percentage)
        freezeColumn : false, // Boolean
        freezeFooter : false, // Boolean
        freezeColumnCssClass : "", // String
        freezeFooterCssClass : "", // String
        freezeHeaderRowCount : 1, // Integer
        freezeColumnCount : 1 // Integer
    });
</script>

Methods

<script type="text/javascript">
    var gridViewScroll = new GridViewScroll({
        elementID : "gvMain",
    });
    gridViewScroll.enhance(); // Apply the gridviewscroll features
    gridViewScroll.undo(); // Undo the DOM changes, And remove gridviewscroll features
</script>

Supported Browsers

  • Internet Explorer 9+
  • Google Chrome (61.0.3163.100)
  • Mozilla FireFox (56.0.2)

Tools

  • Testing tool - Paste your table and styles to test gridviewscroll.

Technical Support

If you have any question with gridviewscroll welcome to filing an issue on GitHub, I will try my best to help.

Or you can send email to twlikol@msn.com.

Copyright and License

Copyright © Likol Lee. Licensed under the MIT license.

GridViewScroll with jQuery (v0.9.6.8)

This version is no longer supported, you can find in link: https://github.com/twlikol/GridViewScroll/tree/v0.9.6.8

About

Freeze column and fixed header in Table or GridView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 71.1%
  • JavaScript 14.3%
  • TypeScript 14.0%
  • CSS 0.6%