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

Implementing appointment search

4 Answers 114 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
hwsoderlund
Top achievements
Rank 1
hwsoderlund asked on 03 Feb 2011, 11:00 AM
I am trying to think of the best way of implementing a search function on top of RadScheduleView. The requirements are similar to the function in Outlook. UI-wise, this is what it should look like:
Textbox and search button immediately above the RadScheduleView instance.
When clicking search, a datagrid will displayed on top of RadScheduleView (hiding it completely) displaying the search results.
When clicking an item (row) in the search results, the EditAppointment dialog of RadScheduleView should pop up.

I can of course bind the datagrid against the same appointments collection that the RadScheduleView is binding to. But how can I initiate the EditAppointment dialog when a search result row is clicked? I am guessing that I would have to first change the visible range of the hidden RadScheduleView to encompass the clicked appointment, then programmatically select the appointment, and finally executing the EditAppointmentCommand. And all those actions would probably have to be dispatched to give them some time to complete properly.

I would greatly appreciate some input on my thoughts here. Perhaps you can think of a better way of accomplishing this scenario.

Best regards,
/Henrik

4 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 08 Feb 2011, 12:32 PM
Hi Henrik,

 
This scenario could be accomplish. I prepared a sample project for you. Attached you can find the sample.

I would suggest you to use the EditAppointment command to edit an appointment from the RadGridView. You could pass the appointment you want to edit as parameter to the command. For example:

RadScheduleViewCommands.EditAppointment.Execute(doubleClickedApp, this.schedule);

..where the doubleClickedApp parameter is a type of Appointment

I hope this suits your needs. Please do not hesitate to contact us if you require any further information.


Best wishes,
George
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
hwsoderlund
Top achievements
Rank 1
answered on 08 Feb 2011, 12:40 PM
Ok. Sounds good. But I think you forgot to attach the sample project. :)
0
Accepted
George
Telerik team
answered on 09 Feb 2011, 08:59 AM
Hello Henrik,

 
Please, excuse me for this misunderstanding. Attached you can find the project.

Kind regards,
George
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
hwsoderlund
Top achievements
Rank 1
answered on 09 Feb 2011, 03:14 PM
Yes, that should work. Thanks! /Henrik
Tags
ScheduleView
Asked by
hwsoderlund
Top achievements
Rank 1
Answers by
George
Telerik team
hwsoderlund
Top achievements
Rank 1
Share this question
or