Implementing appointment search

5 posts, 2 answers
  1. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 03 Feb 2011 Link to this post

    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
  2. Answer
    George
    Admin
    George avatar
    1332 posts

    Posted 08 Feb 2011 Link to this post

    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>>
  3. DevCraft banner
  4. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 08 Feb 2011 Link to this post

    Ok. Sounds good. But I think you forgot to attach the sample project. :)
  5. Answer
    George
    Admin
    George avatar
    1332 posts

    Posted 09 Feb 2011 Link to this post

    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>>
  6. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 09 Feb 2011 Link to this post

    Yes, that should work. Thanks! /Henrik
Back to Top
DevCraft banner