{ type: "open", buttonOptions: { text: "Open", width: "100", click: "onOpenClick" }, |
{ type: "open", buttonOptions: { text: "Open", width: "100", click: "onOpenClick" } }, |
<body> <div id="Grid"></div> <ul id="U1"> <li><span>User</span></li> <li><span>Guest</span></li> <li><span>Admin</span></li> </ul> <script type="text/javascript"> $(function () { $("#Grid").ejGrid({ // the datasource "window.gridData" is referred from jsondata.min.js dataSource: window.gridData, allowPaging: true, templateRefresh : function (args) { $($(args.cell).children()[0]).ejSplitButton({ click: "btnClick2", targetID: "U1" , width: "80px", height: "30px"}); $($(args.cell).children()[1]).ejButton({ click: "btnClick1" }); }, columns: [ ---------------------------------- { headerText: "Actions", template: '<button id="button13">Open</button><button id="button14">Power</button>', width: 150 } ] }); }); </script> |