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

AdvancedInsertTemplate not closing after button click

5 Answers 52 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ilya
Top achievements
Rank 1
Ilya asked on 12 Aug 2011, 04:16 PM
I am having problems closing AdvancedInsertTemplate after users click on Insert button. I can use a redirect but that would not be the best solution. Here is what happens:

  1. Users go to Scheduler page
  2. In code-behind I bind the scheduler to the dataset using BindScheduler() subroutine
  3. When users double-click on the timeslot the AdvancedInsertTemplate opens up with our custom Insert Appointment form
  4. The AdvancedInsertTemplate from as 2 buttons: Create (CommandName: Insert) and Cancel (CommandName: Cancel)
  5. After users enter the appointment details and click Create button a radSchedule1_AppointmentCommand is fired and data is saved into the DB. After save I fire BindScheduler() again in order to bind the newly updated data.
  6. At this point I need to close the modal AdvancedInsertTemplate but it does not close

What is the solution to this issue? thanks

5 Answers, 1 is accepted

Sort by
0
Ilya
Top achievements
Rank 1
answered on 16 Aug 2011, 09:36 PM
Bump
0
Peter
Telerik team
answered on 17 Aug 2011, 09:49 AM
Hello Ilya,

Here are two demos that show that the Insert buttons works as expected for the AdvancedInsertTemplate.

http://demos.telerik.com/aspnet-ajax/scheduler/examples/templates/defaultcs.aspx

http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx

Please, check what is different with your implementation.

Kind regards, Peter
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.

0
Ilya
Top achievements
Rank 1
answered on 17 Aug 2011, 03:05 PM
Well, I am entering all data in the AppointmentCommand without using AppointmentCreated part at all. Once all data is entered I was trying to run Rebind but it does not appear to be working.
0
Peter
Telerik team
answered on 22 Aug 2011, 07:17 AM
Hi Ilya,

Just handling AppointmentCommend should be enough. Also, you don't need to call Rebind AppointmentCommand.

The issue that you experience is strange and I am not sure how to reproduce it. Can you send us the code of your implementation or even better isolate the problem in a simple working demo and send it via a support ticket.

All the best, Peter
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Ilya
Top achievements
Rank 1
answered on 22 Aug 2011, 03:26 PM
I've attached the working demo to the ticket #455364. Thanks
Tags
Scheduler
Asked by
Ilya
Top achievements
Rank 1
Answers by
Ilya
Top achievements
Rank 1
Peter
Telerik team
Share this question
or