I am trying to create a context menu when a user clicks on a day of the WebMonthCalendar. I am not familiar with which objects to pass the javascript function. Here is what I have so far, it is partially working.
I know the ActivityDialogOpening function I can pass in oScheduleInfo, oEvent etc. What things can I pass to the WebMonthView Click event? Is there a place to see all of the possible events on your website for each control you have?
Here is what I have working so far:
<igsch:WebMonthView ID="cboLocations" runat='server' WebScheduleInfoID="WebScheduleInfo1" style="top: 0px; left: -1px; height: 563px; width: 87%" StyleSetName="Office2010Blue" EnableMultiResourceCaption="True" Height="500px" MultiDayEventFromArrowCaption="" MultiDayEventToArrowCaption="" StyleSetPath="" StyleSheetDirectory="" Width="500px"> <ClientEvents Click="WebScheduleInfo1_Click" /></igsch:WebMonthView>
----
<igsch:WebScheduleInfo ID="WebScheduleInfo1" runat="server"><ClientEvents ActivityDialogOpening="WebScheduleInfo1_ActivityDialogOpening" /></igsch:WebScheduleInfo>
<script type="text/javascript"> function WebScheduleInfo1_ActivityDialogOpening(oScheduleInfo, oEvent, oActivityEditProps, oActivity) { oEvent.cancel = true;
//console.log(oScheduleInfo); //console.log(oEvent); //console.log(oActivityEditProps);
var oTest = oActivity;
console.log(oTest.getStartDateTime()); //console.log(oTest.getStartDateTime()); //console.log(oTest.getSubject());
//OpenEvent("123", oActivity.getStartDateTime(), oActivity.getSubject()); OpenEvent("123", "123", "123"); }
function WebScheduleInfo1_Click(oScheduleInfo, oEvent, oActivityEditProps, oActivity) { // Need the objects I can pass in here console.log(oScheduleInfo); console.log(oEvent); console.log(oActivityEditProps); console.log(oActivity); }
function OpenEvent(dataKey, StartDate, Subject) { oWebDialogWindow1 = $find('WebDialogWindow1'); oWebDialogWindow1.set_windowState($IG.DialogWindowState.Normal); }</script>
Anyone out there have any ideas?
Hi OmegaPrime,
You can find the client-side events of WebMonthView and their parameters here - http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=WebMonthView_Client_Side_Events_CSOM.html. And this is the CSOM reference guide for other controls - http://help.infragistics.com/NetAdvantage/ASPNET/2012.1/CLR4.0/?page=ASPNET_AJAX_CSOM.html.
Let me know if this helps.
Hi guys,
I would suggest you to check the following links, containing useful information and a demonstrative sample - http://ko.infragistics.com/community/forums/t/64931.aspx,
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2012.1/CLR4.0/html/WebSchedule_WebScheduleGenericDataProvider_CRUD_Statements_for_SQL_Data_Source.html.
Hi
I am trying to create a webmonthview which should display the trainings scheduled for each day of the calender ...since it should only be a read only control i have set EnableAutoActivityDialog="false".
i have tried to connect to the sqlserver :
<igsch:WebScheduleInfo ID="WebScheduleInfo1" runat="server" EnableSmartCallbacks="True"></igsch:WebScheduleInfo>
<ig_scheduledata:WebScheduleSqlClientProvider ID="WebScheduleSqlClientProvider1"
runat="server" DataSourceID="SqlDataSource1" WebScheduleInfoID="WebScheduleInfo1">
</ig_scheduledata:WebScheduleSqlClientProvider>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:WebSchedule2ConnectionString %>"SelectCommand="SELECT ActivityID FROM Activity WHERE (1 = 2)"></asp:SqlDataSource>
and the sql db has the data
ActivityID StartDateTimeUtc Duration Subject ActivityDescription AllDayEvent Location Status EnableReminder ReminderInterval ShowTimeAs Importance RecurrenceID OriginalStartDateTimeUtc VarianceID _ts1 2012-08-01 00:00:00.000 2 Amman_From01-Aug-2012_301020121813 Amman_From01-Aug-2012_301020121813 0 NULL 0 1 900 3 1 -999 NULL NULL 0x00000000000027112 2012-09-01 00:00:00.000 3600 Amman_From01-Sep-2012_311020121514 Amman_From01-Sep-2012_311020121514 0 NULL 0 1 900 3 1 -999 NULL NULL 0x00000000000027133 2012-11-07 00:00:00.000 3600 Doha_From07-Nov-2012_81120121650 Doha_From07-Nov-2012_81120121650 0 NULL 0 1 900 3 1 -999 NULL NULL 0x0000000000002715
when i run in VS2010 i just get a plain calendar and am able to navigate but not able to get to display the names on the dates ...
hope you could help me out .... thanks
Hi! i am using infragistics 2010.3 asp.net, on windows 7 platform, using component web monthview
its all done, now i am configuring it according to my requirement uknow my custom qurries etc etc, but whenever i run the program it gets data of its choice with -999 id self generated and i dont know where it was supplied parameter 'UNASSIGNED' to the store procedure resource_selbyname from where and how it is executed. i checked on sql profiler as i am using sql server as a datasource and tells me the exec resource_selbyname @resourcename = N'Unassigned' is coming please help.
Regards,
Rex
Hello OmegaPrime,
Please feel free to contact me if you have any other questions.