Access to scheduleView in appointment editor view model

2 posts, 0 answers
  1. Matthias
    Matthias avatar
    7 posts
    Member since:
    Dec 2011

    Posted 20 Jan 2012 Link to this post


    i have implemented a custom appointment editor dialog using the dialog host factory. Now i need access to the scheduleview instance from within the viewmodel of my appointment editor dialog. Especially i need to know from which viewdefinition (month, day, week...) the dialog was started so i can set the start and end dates appropriately.
    I saw that the original appointmentdialogviewmodel (from which i have an instance in my custom editor viewmodel) has a property called DialogHost and this property has another property "ScheduleView" which is in fact the instance i need access to. However the "DialogHost" property on the appointmentDialogViewModel is protected so i can't access it within my viewmodel.
    How can i get access to the scheduleview instance from within my custom view model?

    best regards

  2. Yana
    Yana avatar
    4602 posts

    Posted 26 Jan 2012 Link to this post

    Hello Matthias,

    Could you please provide us some sample code, so we to be able to understand your exact scenario? Thanks in advance

    Kind regards,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top