In this example, the javascript code needed to invoke the stored procedure dbo.spSlickGridDatas is:
attachDomReadyEventHandler(function() {
var options = { 'URL': '/IndustrialDashboard/DALService.svc/CallProcedure', 'DatabaseParameters': { 'Procedure': ' 'dbo.spSlickGridDatas' }, Title: 'Industrial SlickGrid'
, Title : 'Industrial SlickGrid Sample'
, Attributes: { defaultColumnWidth: 130, enableColumnReorder: false, rowHeight: 20, enableCellNavigation: true
, editable: true, enableCellNavigation: true, AllowDelete: true
}
};
//Source path
slickEditorPath = '/IndustrialDashboard/ForeignFiles/slickGrid/Styles/images/';
//Create an Instance of Industrial SlickGrid
sg = new IndustrialSlickGrid(document.getElementById('pSG'), options);
//Refresh Widget
sg.RefreshData();
});