Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showHMA() {
- //var hmaPane = new dijit.layout.ContentPane({
- // style: "width: 100%; height: 250px; overflow: auto;"
- //}, dojo.create("div"));
- var hmaStore = new dojo.data.ItemFileReadStore({url: "/hma"});
- var hmaLayout = [{
- field: 'SM_HMA',
- name: 'SiteManager',
- width: '200px'
- },
- {
- field: 'TX_HMA',
- name: 'TxCIT',
- width: '200px'
- }];
- var gridHMA = new dojox.grid.DataGrid({
- style: "width: 300px; height: 400px;",
- query: "{SM_HMA: '*' }",
- rowsPerPage: 10,
- store: hmaStore,
- clientSort: true,
- rowSelector: '20px',
- structure: hmaLayout,
- autoHeight: true
- }, dojo.create("div"));
- var hmaDlg = new dijit.Dialog({
- title: "SiteManager HMA",
- style: "width: 600px; height: 600px"//; overflow: auto;",
- content: gridHMA.domNode
- });
- gridHMA.startup();
- hmaDlg.show();
- }
Add Comment
Please, Sign In to add comment