Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang='en-us'>
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" type="text/css" href="http://w2ui.com/src/w2ui-1.5.rc1.min.css" />
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
- <script src="http://w2ui.com/src/w2ui-1.5.rc1.min.js"></script>
- </head>
- <body>
- <div id="grid" style="width: 100%; height: 250px;"></div>
- </body>
- <script>
- $(function () {
- $('#grid').w2grid({
- name: 'grid',
- header: 'List of Names',
- columns: [
- { field: 'fname', caption: 'First Name', size: '30%' },
- { field: 'lname', caption: 'Last Name', size: '30%' },
- { field: 'email', caption: 'Email', size: '40%' },
- { field: 'sdate', caption: 'Start Date', size: '120px' }
- ],
- records: [
- { recid: 1, fname: "Peter", lname: "Jeremia", email: 'peter@mail.com', sdate: '2/1/2010' },
- { recid: 2, fname: "Bruce", lname: "Wilkerson", email: 'bruce@mail.com', sdate: '6/1/2010' },
- { recid: 3, fname: "John", lname: "McAlister", email: 'john@mail.com', sdate: '1/16/2010' },
- { recid: 4, fname: "Ravi", lname: "Zacharies", email: 'ravi@mail.com', sdate: '3/13/2007' },
- { recid: 5, fname: "William", lname: "Dembski", email: 'will@mail.com', sdate: '9/30/2011' },
- { recid: 6, fname: "David", lname: "Peterson", email: 'david@mail.com', sdate: '4/5/2010' }
- ]
- });
- });
- $(document).on("mousedown", "#grid", function(){
- console.log("This mousedown won't work")
- });
- $(document).on("mouseup", "#grid", function(){
- console.log("This mouseup will work")
- });
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement