Click here to Skip to main content
15,881,204 members
Articles / Programming Languages / Javascript

Client-side Grid Control in JavaScript

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
2 Oct 2012CPOL2 min read 22.8K   651   8  
A feature-rich, reusable client-side grid control written entirely in JavaScript
.gridJS
{
    width: 100%; 
    background-color: #fff; 
    margin: 5px 0 10px 0; 
    border: solid 1px #525252; 
    border-collapse:collapse;     
}

.gridJS td 
{
    padding: 2px;
    border: solid 1px #c1c1c1;
    color: Black;
    font-size: 1.1em;     
}

.gridJS th 
{
    padding: 4px 2px; 
    /*color: #fff;    */
    background-color: #4b6c9e;        /*   #d3d3d3 */
    /*background: #ffffff url(grd_head.png) repeat-x top;
    background: #000077 url(grd_head.png) repeat-x top;  */   
    border-left: solid 1px #525252; 
    font-size: 1.3em; 
}

.gridJS .alt 
{ 
    background: #fcfcfc url(grd_alt.png) repeat-x top;
}

.gridJS .pgr 
{
    background: #424242 url(grd_pgr.png) repeat-x top; 
}

.gridJS .pgr table { margin: 5px 0; }
.gridJS .pgr td { border-width: 0; padding: 0 6px; border-left: solid 1px #666; font-weight: bold; color: #fff; line-height: 12px; }   
.gridJS .pgr a { color: #666; text-decoration: none; }
.gridJS .pgr a:hover { color: #000; text-decoration: none; }

/*.gridJS:hover
{
    cursor: pointer;
}*/

.gridJS .selected 
{ 
    background-color: Lime;
}

.gridJS .groupHighlight 
{ 
    background-color: #B9D0F8;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer (Senior)
United States United States
For over 25 years I have worked in the Information Systems field as both a full-time employee and an independent contractor for a variety of companies.

I have extensive professional experience with numerous programming languages and technologies including C#, JavaScript, SQL, VB.NET, and ASP.NET as well as a working knowledge of a great variety of others. I also have an advanced understanding of the concepts behind these technologies including Object-Oriented Programming, Relational Data, Functional Programming, MVC and MVVM.

Some of my more recent work has been designing and building web applications primarily with JavaScript in conjunction with many of the JavaScript libraries/frameworks including jQuery, KnockoutJS and Bootstrap and consuming both JSON and REST services.

In nearly all of the work I have been involved with in the past ten years I have played a lead role in the design as well as the development of the work. More recently I have managed a team of software developers at a local mid-size company.

Comments and Discussions