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

Create Appointment in New Page

4 Answers 80 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Sumanth
Top achievements
Rank 1
Sumanth asked on 13 Sep 2010, 07:15 AM
Hi Team,
Please find below requirement.
When i click on time slot of scheduler control, user has to navigate to new page to create an appointment by searching customers. In other words i don't want to existing templates. How can i achieve this.
Thanks in advance.

Regards,
Sumanth

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Sep 2010, 09:04 AM
Hello Sumanth,


I found a demo whih shows how external edit using RadDock can be achieved. I hope this demo will elp you to get strated.
External Edit in RadDock


Thanks,
Princy.
0
Accepted
Veronica
Telerik team
answered on 13 Sep 2010, 10:19 AM
Hi Sumanth,

In addition to Princy's answer - you can subscribe to the OnFormCreating event and cancel it:

protected void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e)
    {
        e.Cancel = true;
    }

That way neither the inline form nor the Advanced Form will appear on insert/edit an appointment.

You can open new page by window.open() in the OnClientTimeSlotClick event handler:

function clientTimeSlotClickHandler(sender, args) {
            window.open("https://www.telerik.com");
        }

In my case the Telerik website will be opened. You can replace it with your own page.

Hope this helps.

All the best,
Veronica Milcheva
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
0
GSI - Technical Support
Top achievements
Rank 1
answered on 13 Dec 2010, 06:45 PM
I am doing this too. I did this code:

function OnClientTimeSlotClick(sender, eventArgs) {
    //alert(eventArgs.get_time());
    window.location = "AppointmentDetail.aspx?mode=add&date=" + eventArgs.get_time();
}

but despite the fact that I click on December 13th or 6th (or whatever), the calendar seems to think I clicked the first monday of the calendar - which is Nov 29th. What the heck am I missing??

[edit:]
I take that back -- it seems to work on some days but not others. And the issue is only on the month view. if I click Saturday 12/4, it works fine. Thursday 12/9 returns 11/29. Friday 12/10 returns 11/29. Friday 12/17 returns 11/29. Monday 12/20 returns 12/20. Tuesday 12/21 returns 11/29.

This is weird.
0
Veronica
Telerik team
answered on 15 Dec 2010, 05:26 PM
Hi Laura,

Could you please send me the full code you are using so I can inspect it and help you?

Thank you!

Best wishes,
Veronica Milcheva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Sumanth
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Veronica
Telerik team
GSI - Technical Support
Top achievements
Rank 1
Share this question
or