This is a migrated thread and some comments may be shown as answers.

Change Category in Custom Appointment Dialog

9 Answers 120 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Jacky
Top achievements
Rank 1
Jacky asked on 26 Mar 2018, 05:43 PM

I have confirmed and unconfirmed project in Categories.

How can I change Category  in  Custom Appointment Dialog?

 

-Jacky

9 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 29 Mar 2018, 09:18 AM
Hello Jacky,

To create a custom dialog for your custom appointments, you should extract the default EditAppointmentDialogStyle for the theme you're using and set it as the EditAppointmentDialogStyle property of the RadScheduleView. You can have a look at the following article for reference.

As the default dialog actually has a combo box which allows for the category of the appointment to be changed, may I ask what the actual result you're looking for is? Providing an image of the expected layout would definitely be of help.

In case you want to add another combo box just below the AllDayEvent CheckBox, I've prepared a small sample project that demonstrates how to achieve this in accordance to the aforementioned article.

I hope you find this helpful.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Jacky
Top achievements
Rank 1
answered on 29 Mar 2018, 04:47 PM

Hi Dilyan,

Maybe I confused you. The reply is not I expected. I have checkbox for confirm/unconfirmed in Custom Appointment Dialog. When user check this checkbox, the categories can be set to switch the category.

 

 

 

0
Jacky
Top achievements
Rank 1
answered on 29 Mar 2018, 04:55 PM
I re-attached the image file. the previous one is not clear.
0
Jacky
Top achievements
Rank 1
answered on 29 Mar 2018, 04:57 PM

I re-attached the image file.

0
Dilyan Traykov
Telerik team
answered on 30 Mar 2018, 12:00 PM
Hello Jacky,

I modified my previous project based on your description and the image you provided. If I understood you correctly, you want the RadComboBox to be disabled when the project is unconfirmed, and enabled otherwise. Please let me know if I'm mistaken in this assumption.

The project I've attached uses the approach demonstrated in this code library to update the UI of the edit dialog upon changes in the bound properties.

Please let me know if this is what you had in mind.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Jacky
Top achievements
Rank 1
answered on 04 Apr 2018, 04:55 PM

the modified  project is on wrong direction.

I have confirmed and unconfirmed item in Categories. when user check the ComboBox to confirm this is confirmed project , the  Categories can be change to confirmed item. the reason is the Categories have a long list and user want to be simple. the question is how to change selected item Categories.

0
Sia
Telerik team
answered on 09 Apr 2018, 12:41 PM
Hello,

Thank you for the additional details. Can you please confirm that we understand your requirements correctly? You have two types of Projects - confirmed and unconfirmed. When the user check the checkbox, you want all items in Categories to be filtered and only the confirmed ones to be visible? When the checkbox is unchecked - all categories should be visible? In order to provide you with a working solution sooner, we will need a detailed information about your setup and your requirements. A runnable sample project would be the best option if possible. 

Regards,
Sia
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Jacky
Top achievements
Rank 1
answered on 10 Apr 2018, 09:19 PM

Categories have two types of Projects - confirmed and unconfirmed.

When the user check the checkbox, if  Categories is confirmed , then keep it. if Categories is unconfirmed, then change to confirmed.

vice versa.

0
Martin Ivanov
Telerik team
answered on 13 Apr 2018, 12:26 PM
Hello Jacky,

To achieve your requirement you can change the ItemsSource of the RadComboBox control that shows the categories each time you check/uncheck the checkbox. I updated Dilyan's example to show this approach. Can you give it a try and let me know if it helps?

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ScheduleView
Asked by
Jacky
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Jacky
Top achievements
Rank 1
Sia
Telerik team
Martin Ivanov
Telerik team
Share this question
or