source: trunk/web/addons/job_monarch/lib/extjs/examples/remoteload/EmployeePropertyGrid.js @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 553 bytes
Line 
1/*
2 * Ext JS Library 2.2.1
3 * Copyright(c) 2006-2009, Ext JS, LLC.
4 * licensing@extjs.com
5 *
6 * http://extjs.com/license
7 */
8
9Ext.ns('App');
10
11App.EmployeePropertyGrid = Ext.extend(Ext.grid.PropertyGrid, {
12        load: function(config) {
13                Ext.apply(config, {
14                        url: this.url,
15                        success: this.onLoad,
16                        scope: this
17                });             
18                Ext.Ajax.request(config);
19        },
20        onLoad: function(response, opts) {
21                var json = Ext.decode(response.responseText);
22                this.setSource(json);           
23        }
24});
25Ext.reg('employeepropertygrid', App.EmployeePropertyGrid);
Note: See TracBrowser for help on using the repository browser.