Create new appointment dialog using Radscheduler

7 posts, 0 answers
  1. kottu
    kottu avatar
    23 posts
    Member since:
    Mar 2009

    Posted 22 Dec 2009 Link to this post

    1.How to show a new appointment dialog in  Radscheduler.
    2.Edit radscheduler Controls

    anyone can help me...

    thanks ,
    vignesh
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 24 Dec 2009 Link to this post

    Hi kottu,

    You can take a look at the DataBinding demo in the RadScheduler's section in the QSF. The demo demonstrates a RadScheduler which is bound to a data source, but it also uses a custom dialog instead of the standard  EditAppointmentDialog.

    I hope this helps.

    All the best,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. shinu rag
    shinu rag avatar
    48 posts
    Member since:
    Feb 2010

    Posted 13 Feb 2010 Link to this post

    how can get the selected cell with its details date and time...
    thank you...
  4. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    353 posts

    Posted 15 Feb 2010 Link to this post

    Hello shinu rag,

    Yes you can take the selected cell. Subscribe to MouseDown event of RadScheduler and you can take the RadElement using GetElementAtPoint. If the selected element is a SchedulerCellElement, you can take the date from it:

    void radScheduler1_MouseDown(object sender, MouseEventArgs e)
    {
        SchedulerCellElement cell = this.radScheduler1.SchedulerElement.ElementTree.GetElementAtPoint(e.Location) as SchedulerCellElement;
     
        if (cell == null || cell as SchedulerHeaderCellElement != null)
            return;
     
      savedDate = cell.Date;
    }

    Feel free to ask more questions.

    Kind regards,
    Dobry Zranchev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. shinu rag
    shinu rag avatar
    48 posts
    Member since:
    Feb 2010

    Posted 15 Feb 2010 Link to this post

    ok thanx...
    can i use these codes to get the values from the selected cell . its working but not sure that its a correct way ...

    private void radScheduler1_CellClick(object sender, SchedulerCellEventArgs e)
            {
                SchedulerCellElement ele = e.Cell;
                MessageBox.Show(ele.Date.ToShortDateString());
                MessageBox.Show(ele.Date.ToShortTimeString());
            }
  6. shinu rag
    shinu rag avatar
    48 posts
    Member since:
    Feb 2010

    Posted 15 Feb 2010 Link to this post

    how can set the time intervel in

    Radscheduler

    thank you
  7. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    353 posts

    Posted 16 Feb 2010 Link to this post

    Hello shinu rag,

    The event CellClick is fired only on a left click. This event is not enough to get the cell element though.

    The time interval depends on the view -- in week, workwweek, and day views you can use RangeFactor property.

    And for timeline, you can use:
    this.radScheduler1.GetTimelineView().GetMinutesTimescales()[0].Visible = true;

    I hope that this helps.

    Kind regards,
    Dobry Zranchev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top