footballermahesh
Newbie

Posts: 3
|
 |
« Reply #2 on: July 09, 2009, 09:59:07 PM » |
|
BUt what i did is i created a common function for creating the sigma grid and around 12 pages using the same function for creating grid, i need my 4th page's action,ie when clik the grid i need a alert, .. so it is not possible to created the jandler inside the gridoption
# gridOption={ # id : grid_id, # container : div_id, # loadURL : loadurl, # saveURL : saveurl, # width: width, # height: height, # dataset : dsOption , # columns : colsOption, # pageSize:row_per_grid, # toolbarContent : 'nav | reload | add save', # pageSizeList : [5,10,15], # reloadAfterSave:true # # onClickCell: function(value, record , cell, row, colNO, rowNO,columnObj,grid){ # alert('clicked the cell'); # } # # }
i need out side like this
gridOption={ id : grid_id, container : div_id, loadURL : loadurl, saveURL : saveurl, width: width, height: height, dataset : dsOption , columns : colsOption, pageSize:row_per_grid, toolbarContent : 'nav | reload | add save', pageSizeList : [5,10,15], reloadAfterSave:true }
mygrid=new Sigma.Grid(gridOption); Sigma.Util.onLoad( Sigma.Grid.render(mygrid) );
//NOW I NEE D ONE HANDLER HERE mygrid.onClickCell = function(e){ alert('clicked the cell'); }
|