How to use Chart in windows 8 metro app using c# and xaml
WinRT_Samples_2b074e9a.zip
- I want to create an appointment from my back end (database)data instead of front end.
- I need to show the list box with details on click of the date if there is an appointment is already available if not then i want to display empty ListBox . i dont want {+} button to create an appointment on click of date. Listbox should come on the same page .
- i want to block AddEvent Flyout on Double click of date because my data will come from DB as i mentioned in my Question 1.
MyPlan_b_369a354.rar
- I want to create an appointment from my back end (database)data instead of front end.
- I need to show the list box with details on click of the date if there is an appointment is already available if not then i want to display empty ListBox . i dont want {+} button to create an appointment on click of date. Listbox should come on the same page .
- i want to block AddEvent Flyout on Double click of date because my data will come from DB as i mentioned in my Question 1.
MyPlan_b_6db6db23.rar
Hi Puneeth,
Please find the response for the Schedule related queries
below,
Query 1. Create an
appointment from my back end (database)data instead of front end.
You requirement can be achieved by the AppointmentMapping feature
of the SfSchedule, through this support you can map the appropriate properties.
We have created a simple sample for the sample, please find
the sample in the attachment.
In the provided sample, we have used the following code
snippet for Appointment Mapping
|
[Code Snippet] <syncfusion:SfSchedule.AppointmentMapping> <syncfusion:ScheduleAppointmentMapping StartTimeMapping="AppStartTime"
EndTimeMapping="AppEndTime"
SubjectMapping="AppSubject"
AppointmentBackgroundMapping="AppBackground"
LocationMapping="Where" </syncfusion:SfSchedule.AppointmentMapping> |
Query 2. To show the
list box with details
Your requirement can be achieved by cancel the default
context menu in the ContextMenuOpening event of the SfSchedule.
Please find the code snippet for the same.
|
[Code Snippet] void
schedule_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e) { e.Cancel = true; } |
In the provided sample we have also stopped the default
context menu and displayed a list box.
Query 3. To block DefaultAppointment
Editor in Schedule
Your requirement can be achieved by cancel the default
context menu in the AppointmentEditorOpening event of the SfSchedule.
Please find the code snippet for the same.
|
[Code Snippet] void
Schedule_AppointmentEditorOpening(object sender, AppointmentEditorOpeningEventArgs e) {
e.Cancel = true;
} |
In the provided sample we have also stopped the default AppointmentEditor
of the Schedule.
If the provided solution doesn’t meet you requirement please
revert us back with more information so that we could assist you better.
Please let us know, if you need any further assistance.
Regards,
Joy Oyiess Rex K
Schedule_custom_class_9971d7b1.zip
Sure Let u know if any further assistance needed.Thank you once again.
Hi Puneeth,
Thanks for your update, feel free to contact us.
We are happy to assist you as always.
Best Regards,
Joy Oyiess Rex K
Hi Puneeth,
Thanks for your interest in Syncfusion products.
You may contact [email protected]
for further assistance.
We are happy to assist you.
Regards,
Joy Oyiess Rex K
Hi Puneeth,
In Windows 8.1 we are facing some issues in some of our
controls, and we are working on this. The complete support for Windows 8.1 will
be available from our upcoming volume release (Dec, 2013).
Please let us know, if you have any concerns.
Regards,
Joy Oyiess Rex K
Hi Puneeth,
Yes, while upgrading to windows
8.1 we have faced certain issues while flipping in the Schedule, but we have already fixed those issues and it
will be available from our next volume release(Dec 2013).
We have attached the patch dll with this, to resolve the
mentioned issue,
Replace the theme files from the provided folder in both
the below locations,
C:\Program Files (x86)\Syncfusion\Essential
Studio\11.3.0.30\Assemblies for WinRT\Syncfusion.SfSchedule.WinRT\Themes
and
C:\Program Files (x86)\Syncfusion\Essential
Studio\11.3.0.30\SDK\Redist\CommonConfiguration\neutral\Syncfusion.SfSchedule.WinRT\Themes
Replace the *.dll and *.pri files
from the provided folder in both the below locations,
C:\Program Files
(x86)\Syncfusion\Essential Studio\11.3.0.30\Assemblies for WinRT
and
C:\Program Files (x86)\Syncfusion\Essential
Studio\11.3.0.30\SDK\References\CommonConfiguration\neutral
Please let us know, if you need
any further assistance.
Regards,
Joy Oyiess Rex K
dll_c5c060e3.zip
Hi Puneeth,
Please ignore our previous update.
Yes, while upgrading to windows 8.1 we have faced certain
issues while flipping in the Schedule, but we have already fixed those
issues and it will be available from our next volume release(Dec 2013).
We have attached the patch dll with this, to resolve the
mentioned issue,
Replace the theme files from the provided folder in both the
below locations,
C:\Program Files (x86)\Syncfusion\Essential
Studio\11.3.0.30\Assemblies for WinRT\Syncfusion.SfSchedule.WinRT\Themes
and
C:\Program Files (x86)\Syncfusion\Essential
Studio\11.3.0.30\SDK\Redist\CommonConfiguration\neutral\Syncfusion.SfSchedule.WinRT\Themes
Replace the *.dll and *.pri files from the provided folder
in both the below locations,
C:\Program Files (x86)\Syncfusion\Essential
Studio\11.3.0.30\Assemblies for WinRT
and
C:\Program Files (x86)\Syncfusion\Essential
Studio\11.3.0.30\SDK\References\CommonConfiguration\neutral
Please let us know, if you need any further assistance.
Regards,
Joy Oyiess Rex K
Syncfusion.SfSchedule.WinRT_80a1fcb9.zip
- I am using DatePicker and getting the value on UI , but i want to know how to set the value from my Code , like i am using two date picker, one will be on the current date , the second will some calculation based on first DatePicker and need to show Calculated date,example: like from current date it should be +2 . can i have an event where i can get the selected value from Picker and set the value from my code .
- In the Scheduler On click of Month And Week View i need to get the selected value like Date day , Month and Year ,example: if i clicked on 9th Dec 2013 these three details i need to get as 3 string objects and If any other Details or Scheduled appointments are available on that day those all information i need to get on click event for that particular date .
Hi Puneeth,
Thanks for your previous update.
Please find the response for your
previous queries below,
Regarding Query #1:
We have prepared a sample to
address your requirement of 'changing second DatePicker value with some
difference based first DatePicker'. In the sample we have used 'ValueChanged'
event of first SfDatePicker to update the second.
Please find the sample in below
link,
Regarding Query #2:
We have also prepared your sample
to achieve your requirement of “ Get the Selected Date Informations such as
SelectedDate and Appointments(if
available on the selected day)”, please find the sample in the attachment.
In the provided sample we have
get the selected Date and Appointments in the ScheduleTapped event of the
SfSchedule. Please find the code snippet below for the same.
|
[Code Snippet] void schedule1_ScheduleTapped(object sender, ScheduleTappedEventArgs e) { this.date_TextBlock.Text =
e.SelectedDate.ToString().Remove(11); DateTime date = (DateTime)e.SelectedDate; var appointments = from apps in (sender as SfSchedule).Appointments where apps.StartTime.Date == date.Date
select apps; this.Apps_LstBox.ItemsSource = (IEnumerable)appointments; this.Apps_LstBox.DisplayMemberPath = "Subject"; } |
Please let us know, if you need any further assistance.
Regards,
Joy Oyiess Rex K
SelectedDatesAndApps_WinRT_b51793c6.zip
Previous given solution was fine.
Thank you very much.
I have few questions to customize the Scheduler based on our requirements .
I am using syncfusion scheduler, there i am able to show my own database column values in the scheduler.
Question ---
1.you creating an uniqueID for each Appointment and to update that Appointment are you using that id to update that particular Appointment .
My question is i actucally need one UniqueID in my database to make as Primary key and that same id i need to pass from UI on click of save so that it will UPDATE into The Database.
I tried to find to get that Unique ID property in my AppointmentEditorClosed event to but not got.
If you are not using anything like Unique ID then let me know how i can update my Appointment into my sqlite database, means That WHERE Clause what i can pass to update into my SQLITE table .
Note : SelectedDate Property will Not work here because in one date i can have No of Appointment .
protected async void schedule1_AppointmentEditorClosed(object sender, AppointmentEditorClosedEventArgs e)
{
#region Appointment ID need to pass so its throughing error
Appointementdata objAppointementdata = new Appointementdata();
ScheduleAppointment objScheduleAppointment = schedule1.SelectedAppointment;
objAppointementdata.StartTime = objScheduleAppointment.StartTime.ToString();
objAppointementdata.EndTime = objScheduleAppointment.EndTime.ToString();
objAppointementdata.Subject = objScheduleAppointment.Subject;
//List<Common.Data.Appointementdata> lstappointment = await UpdateAppointment(objAppointementdata);
#endregion
}
2-> I am showing one popup on click of Date if the Date have any appointment already.suppose my popup is open and
I am navigating by using next button (topLeft ) or previous button (Top Right) i need to hide that POPUP which i am not getting that on which Event i need to hide.
3 -> I need to know that suppose i have one date that could be Different not the Current date so if i am coming from some other screen to my month or week view based Desired date i need to Open my Month and week view not based on my current
date .ex. i am passing 24/02/2014 to my Month view i need to show the Month view of that month that is 02 of 2014.
Please find the attachment for question 2.
Thanks
Puneeth
Attachments_d511a976.rar
Hi Puneeth,
We appreciate your patience.
Please find the response for your queries given below.
Regarding Unique ID
for each appointment.
The RecurrenceID property of the ScheduleAppointment has been
calculated from its hash code, so we can use this property for unique ID.
Note:- This property is available from our latest WinRT SP release(v11.3.0.32).
Regarding Clear Custom Pop-up
We don’t have any direct support
to listen the visible dates change while Navigation , but your
requirement can be achieved by using the VisibleDates property of the
SfSchedule. This is a property contains the visible dates collection of
SfSchedule. This property gets changed while we navigate the view.
So when we bind the VisibleDates
property of SfSchedule to a Local property in application, then local property
gets changed when VisibleDates property gets changed. By listening to the local
property changed (clear the pop –up in its set{}) we can perform required
action.
Regarding MoveToDate
In Order to move to specific
date, you can use the MoveToDate() method of the SfSchedule, where you need to pass
the required date in that method.
Please let us know, if you need
any further assistance.
Regards,
Joy Oyiess Rex K
1-Now i am facing problem to Access your RecurrenceID that is coming in non public member of object sender so i don't have direct access of that. i tried all way of reflection in my collectionChanged Event but no luck . i will be happy if you able to provide me a simple code snippets to Access the RecurrenceID . i am mentioning in which event i am trying to get RecurrenceID .
void Appointments_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e){}
2-another Question is are we have event for save , delete and cancel Button click .
Thanks in Advance
Puneeth
Hi Puneeth,
Thanks for your previous update.
Query #1: Regarding accessing RecurrenceID.
The RecurrenceID property of
ScheduleAppointments is read-only property and this property is available only
after WinRT SP v11.3.0.32. We have prepared a simple sample for the same,
please find the sample in the attachment.
In the provided sample we have
get the RecurrenceID for the SelectedAppointment in the ScheduleTapped event of
the Schedule.
Query #2: Regarding events for Save/Cancel/Delete button.
Currently we don’t provide event support
for Save/Cancel and Delete buttons in our ScheduleAppointmentEditor.
Please let us know, if you have
any concerns.
Regards,
Joy Oyiess Rex K
RecurreciveID_WinRT_5fdad0ac.zip
- 22 Replies
- 3 Participants
-
PU Puneeth
- Oct 11, 2013 12:44 PM UTC
- Nov 27, 2013 12:06 PM UTC