AdvancedInsertTemplate not closing after button click

6 posts, 0 answers
  1. Ilya
    Ilya avatar
    67 posts
    Member since:
    Jul 2012

    Posted 12 Aug 2011 Link to this post

    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
  2. Ilya
    Ilya avatar
    67 posts
    Member since:
    Jul 2012

    Posted 16 Aug 2011 Link to this post

    Bump
  3. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Aug 2011 Link to this post

    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.

  4. Ilya
    Ilya avatar
    67 posts
    Member since:
    Jul 2012

    Posted 17 Aug 2011 Link to this post

    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.
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 22 Aug 2011 Link to this post

    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 >>

  6. Ilya
    Ilya avatar
    67 posts
    Member since:
    Jul 2012

    Posted 22 Aug 2011 Link to this post

    I've attached the working demo to the ticket #455364. Thanks
Back to Top