radScheduler Edit Appointment Form Size

20 posts, 0 answers
  1. Gary
    Gary avatar
    2 posts
    Member since:
    May 2013

    Posted 29 May 2013 Link to this post

    Having problem in Edit Appointment Form Size 
    can some one help me. . 

    Just Click the attached file

    Thanks


    Windows 7 Enterprise SP1
    En-PH
    .Net 4.5
    RadControls (Q1 2013) v2013.1.220.40 Dev

  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 03 Jun 2013 Link to this post

    Hello Gary,

    Thank you for writing.

    In your case you should manually set the dialog's Size property:
        this.radScheduler1.AppointmentEditDialogShowing += new EventHandler<Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs>(radScheduler1_AppointmentEditDialogShowing);
     
     
    void radScheduler1_AppointmentEditDialogShowing(object sender, Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs e)
    {   
        EditAppointmentDialog dialog = (EditAppointmentDialog)e.AppointmentEditDialog;
        dialog.Size = new Size(800, 800);
    }

    I hope this helps.

    Regards,
    Peter
    Telerik
    RadChart for WinForms is obsolete. Now what?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Gary
    Gary avatar
    2 posts
    Member since:
    May 2013

    Posted 11 Jun 2013 Link to this post

    Hello Peter,

    Thank you for the code that you give. But still not working, how ever the dialog form has been change but the buttons still now slow,
    I think the control inside the dialog form has been anchored to an edges,

    I also try the trial version but still not working :(

    Regards,
    Gary


  5. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 14 Jun 2013 Link to this post

    Hello Gary,

    This approach works fine on my end. I am able to access every control in this dialog through dialog control collection. For example:
      void radScheduler1_AppointmentEditDialogShowing(object sender, Telerik.WinControls.UI.AppointmentEditDialogShowingEventArgs e)
            {
     
                EditAppointmentDialog dialog = (EditAppointmentDialog)e.AppointmentEditDialog;
                dialog.Controls["buttonOK"].Anchor = AnchorStyles.None;
    //Set location
                dialog.Controls["buttonOK"].Location = new Point( ....
                dialog.Size = new Size(800, 800);
     
            }

    I hope this helps.

    Regards,
    Peter
    Telerik
    RadChart for WinForms is obsolete. Now what?
  6. Harry
    Harry avatar
    6 posts
    Member since:
    Aug 2012

    Posted 11 Feb 2015 Link to this post

    Hello sir,

    I need help in radScheduler what i need is:

    On click of appointment i need to open my form instead of opening default Edit appointment form.
    How can i do this.

    Please reply me as soon as possible.

    Thanks
    Harry
  7. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 11 Feb 2015 Link to this post

    Hi Harry,

    Thank you for writing.

    You can use the AppointmentEditDialogShowing event to do that. Here is an article with explanations and example of this scenario: http://www.telerik.com/help/winforms/scheduler-appointments-and-dialogs-adding-a-custom-field-to-the-editappointment-dialog.html.

    I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Harry
    Harry avatar
    6 posts
    Member since:
    Aug 2012

    Posted 12 Feb 2015 in reply to Stefan Link to this post

    Hi Stefan,

    Thanks for your reply. But i need completely different form i don't want event 1 control of this Edit Appointment for. I need to show another form instead of deriving from EditAppointmentDialog, by deriving from EditAppointmentDialog all controls automatically comes which i don't want. Please share your thoughts.

    Thanks,
    Harry
  9. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 12 Feb 2015 Link to this post

    Hello Harry,

    If you want to completely cancel the dialog, you can use the event arguments and set e.Cancel = true, then do whatever you need to.

    If you want to show a form, that will be used to edit the appointment, this form have to implement the IEditAppointmentDialog interface and should be assigned to the AppointmentEditDialog property of the same event.

    I hope this clears things up.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  10. Harry
    Harry avatar
    6 posts
    Member since:
    Aug 2012

    Posted 12 Feb 2015 in reply to Stefan Link to this post

    Thanks Stefan,

    But I didn't get this point can you please explain breifly:

    this form have to implement the IEditAppointmentDialog interface and
    should be assigned to the AppointmentEditDialog property of the same
    event.

    Please explain in detail.

    Thanks for your help
  11. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 12 Feb 2015 Link to this post

    The idea of the edit appointment dialog, is to edit the appointment you clicked. With the dialog, as you can see, you can change all kinds of properties of the appointment - StartDate, Descrption, EndDate, etc. So, if you want a custom dialog to be used to edit appointments, this custom dialog, should implement the IEditAppointmentDialog interface, as this is the way the scheduler communicates with the dialog. 

    The interface has a method you should implement, called EditAppointment. In this method, you have the scheduler instance and the appointment instance. In the implementation of this method in your dialog, you will receive the appointment being edited, and you can customize its properties and the return it, so the scheduler can apply the changes - e.g.you can put a text box in your custom dialog, and get the text the user entered in it and assign it to the Description property of the appointment you get in the method.

    I hope this clears things up.

    Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  12. Raja
    Raja avatar
    5 posts
    Member since:
    Feb 2016

    Posted 09 Mar Link to this post

    Hi all, How to edit update delete in radscheduler same as Radgrid Format? please reply anyone..
  13. Dess
    Admin
    Dess avatar
    1605 posts

    Posted 10 Mar Link to this post

    Hello Raja,

    Thank you for writing.

    RadScheduler offers two options to edit an appointment:
    - Edit an appointment using an Edit Appointment Dialog
    - Edit an appointment using an in-place editor
    Additional information is available at the following help article: http://docs.telerik.com/devtools/winforms/scheduler/end-user-functionality/editing-appointments-

    As to the delete options, please refer to the Scheduler >> Resizing, Moving and Deleting Appointments help article >> Deleting Appointments section.

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  14. Raja
    Raja avatar
    5 posts
    Member since:
    Feb 2016

    Posted 24 Mar in reply to Dess Link to this post

    Hi Dess,

    How to get radscheduler selected date and showing the textbox.. not in radscheduler appoinments date or id.

    thanks..

  15. Dess
    Admin
    Dess avatar
    1605 posts

    Posted 24 Mar Link to this post

    Hello Raja,

    Thank you for writing back. 

    If I understand correctly you are trying to activate the inline editor for the selected date in RadScheduler. Note that when you start typing, a visual appointment element is added to the scheduler view element which allows the text box editor to be initialized for a temporary appointment. However, in order to force the You can find below a sample code snippet demonstrating how to achieve it:
    private void radButton1_Click(object sender, EventArgs e)
    {
        DateTimeInterval selectedInterval = this.radScheduler1.SelectionBehavior.GetSelectedInterval();
        IEvent appointment = this.radScheduler1.ViewElement.CreateTemporaryAppointment(
            "new event", selectedInterval.Start, selectedInterval.End,
            this.radScheduler1.SelectionBehavior.IsAllDayAreaSelection || this.radScheduler1.ActiveViewType == SchedulerViewType.Month,
            this.radScheduler1.SelectionBehavior.SelectedResourceId);
     
        if (appointment != null)
        {
            this.radScheduler1.SelectionBehavior.SelectAppointment(appointment, false);
            this.radScheduler1.ViewElement.InvalidateMeasure(true);
            this.radScheduler1.ViewElement.UpdateLayout();
     
            radScheduler1.SchedulerElement.EditorManager.BeginInlineEdit();
        }
    }

    If it is not the exact requirement, please specify in details what is the goal that you are trying to achieve. Thus, we would be able to think about a suitable solution and assist you further. Thank you.

    I hope this information helps. If you have any additional questions, please let me know.

     Regards,
    Dess
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  16. Raja
    Raja avatar
    5 posts
    Member since:
    Feb 2016

    Posted 25 Mar in reply to Dess Link to this post

    Hi Dess,

    I have a Rad scheduler and Rad Button in a form, on button click I am trying to get the selected date from the rad scheduler.

    I tried the "Radscheduler.SelectedDate" which always seems to return the current date instead of selected date.

    Regards

    Raja.

  17. Dess
    Admin
    Dess avatar
    1605 posts

    Posted 25 Mar Link to this post

    Hello Raja,

    Thank you for writing back. 

    SchedulerSelectionBehavior performs selection operations and provides information about the current selection of cells and appointments in RadScheduler. You can use the RadScheduler.SelectionBehavior.GetSelectedInterval method which returns the selected DateTimeInterval.

    Additional information is available at the following link: http://docs.telerik.com/devtools/winforms/scheduler/fundamentals/scheduler-selection

    I hope this information helps. If you have any additional questions, please let me know.

    Regards,
    Dess
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  18. Raja
    Raja avatar
    5 posts
    Member since:
    Feb 2016

    Posted 23 Apr in reply to Dess Link to this post

    Hi Dess,

    How to add year View option in rad scheduler and Combo-box Control same place, it is possible in web-form.

    please tell me or send any idea. thanks

    regards 

    Raja

     

     

  19. Dess
    Admin
    Dess avatar
    1605 posts

    Posted 26 Apr Link to this post

    Hello Raja,

    Thank you for writing back. 

    This forum is related to the Telerik UI for WinForms suite. If the product that you use is different, feel free to open a support thread with the correct product or post your question in the relevant forum: http://www.telerik.com/forums

    I hope this information helps. If you have any additional questions, please let me know.
    Regards,
    Dess
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  20. Raja
    Raja avatar
    5 posts
    Member since:
    Feb 2016

    Posted 30 Apr in reply to Dess Link to this post

    Hi sir,

    i have used Radscheduler one Combobox controls.then radscheduler GroupBy="AAA"  and i have create a ResourceType in Design part.. now i have select the Combobox selected text, still stage scheduler resources name showing and also appoinment , but without appoinment resources NAME also coming in radscheduler.. please tell me any idea. i am used Webform not in Winform...

  21. Dess
    Admin
    Dess avatar
    1605 posts

    Posted 02 May Link to this post

    Hello Raja,

    Thank you for writing back. 

    This forum is related to the Telerik UI for WinForms product. Feel free to post your questions regarding other products in the relevant forum: http://www.telerik.com/forums

    Thank you for your understanding.

    Regards,
    Dess
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WinForms is Visual Studio 2017 Ready