Skip to content

babydragoner/oGrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

obj4u - object for you

oGrid is a pure javascript grid and it's object oriented design.

Home

http://o4u.tw/oGridDemo/

Features

  • pure javascript grid.
  • object oriented design.
  • Easy to inherits or override oGrid to make yourself grid.
  • It can load JSON data from local or URL.
  • It can save page data in cache.
  • paging bar.

Sample Code

    var obj;
    window.onload = function () {
        obj = new obj4u.oGrid(dataTable);
        obj.loadData(rawData);
        obj.renderData();
        obj.event.AddEvent("onSelectedRow", oGrid_SelectedRow);
    }

    function oGrid_SelectedRow(rowElement, row)
    {
      var selectedRows = obj.getSelectRows();
      alert(rowElement.rowIndex+ " - " + selectedRows.length + "," + row["productid"]);
    }

About

oGrid is a pure javascript grid and it's object oriented design.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published