Sample

Change Style:

In this example, the javascript code needed to invoke the stored procedure dbo.getBatchDataIGCalendar is:

                    
                        attachDomReadyEventHandler(function() {                            
                            //Create CalendarPicker,for filtering IG Widget.
                            //Set Initial Options, for CalendarPicker.
                             var options = { 'Events': { 'onChange': refreshIG} };
                             cp = new CalendarPicker(document.getElementById('pCalendarPicker'), options);
                             //Set Initial Options, using "CallProcedure" method, also set the procedure.
                             options = { 'URL': '../DALService.svc/CallProcedure', 'DatabaseParameters': { 'Procedure':  'dbo.getBatchDataIGCalendar'} };
                             //Create an Instance of IndustrialGrid
                             ig = new IndustrialGrid(document.getElementById('pIG'), options);                             
                             //Set Specific Date
                             cp.SetValue(new Date(2010, 3, 2));
                             //Refresh Widget
                             refreshIG();
                        });