Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
WebSchedule with WebDayView
posted

Hi,

I m new on Infragistics. And I want to make schedule with WebDayView. I already read how to set all of controls. My Issues are :

1)   I using different data model, and as documentation said I need to make custom class inherited   fromWebScheduleSqlClientProvider ...... And what should I overrided to Load/Save data ?


2) On WebScheduleInfo control , we can set URL to add activity. My question is :

  • after I saved from pop up window new activity. How to pass back saved data to parent window where WebDayView / WebWeekView / WebMonthView ?
  • Is possible to add activity directly in WebDayView without calling other page ?

3) I want to use WebDayView like Outlook and setting days to 7, but it display selected date as starting day and look strange. How I can set starting date as in WebScheduleInfo properties FirstDayOfWeek ?

 

Please need your answer :)

 

Tanx

Parents
No Data
Reply
  • 4960
    posted
    cax3000 said:

    1)   I using different data model, and as documentation said I need to make custom class inherited   fromWebScheduleSqlClientProvider ...... And what should I overrided to Load/Save data ?

    If you are using MS SQL Server, then look to modify the stored procedures, adapting the incoming/outgoing parameters to your data model in T-SQL.  See these documentation topics for what WebSchedule expects:

    See if you can match up with WebScheduleSqlClientProvider just by changing the stored procs first. If that doesn't work, then you can look at subclassing it to override its Fetch and Update methods. 

    cax3000 said:

    2) On WebScheduleInfo control , we can set URL to add activity. My question is :

    • after I saved from pop up window new activity. How to pass back saved data to parent window where WebDayView / WebWeekView / WebMonthView ?
    • Is possible to add activity directly in WebDayView without calling other page ?

    The parent window will refresh itself with the new data.  It will perform an AddActivity operation followed by a FetchActivities operation to get latest.

    In order for the new activity to be committed to the database (remember, other users might be looking at this activity in real-time) it's necessary to go back to the server. 

    However, if you would like to programmatically add an Appointment (i.e. not go through the Add Appointment dialog), then that is possible by "filling-in" a new Appointment object via assignment statements and calling a method on WebScheduleSqlClientProvider such as AddActivity.

    cax3000 said:

    3) I want to use WebDayView like Outlook and setting days to 7, but it display selected date as starting day and look strange. How I can set starting date as in WebScheduleInfo properties FirstDayOfWeek ?

    If you want the "week" to start on a Monday then set the ActiveDayUtc to a date that is a Monday, and the leftmost date displayed by WebDayView will be that.  You can set WebDayView's VisibleDays to 7.

Children
No Data