Postback problem in custom advanced form

12 posts, 0 answers
  1. Emilie Lessard
    Emilie Lessard avatar
    6 posts
    Member since:
    Nov 2009

    Posted 30 Nov 2009 Link to this post

    Hi!
    I'm using the radscheduler with a custom advanced form.
    Both the advanced form and the page containing it have EnableViewState to true but I'm still having post back issues.
    When a control in the advanced form fires a postback, all data binded to the advanced form is cleared and the state of the controls are reset.

    How do you prevent this?
    thanks!
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 01 Dec 2009 Link to this post

    Hello Emilie,

    How exactly do you implement your custom advanced form for RadScheduler? You can download a sample from here and test it by adding a postback button in AdvancedForm.ascx:

    http://www.telerik.com/support/kb/aspnet-ajax/scheduler/sample-project-of-the-customizing-the-advanced-template-example.aspx

    The controls in the advanced from should persist their state.


    Best wishes,
    Peter
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Emilie Lessard
    Emilie Lessard avatar
    6 posts
    Member since:
    Nov 2009

    Posted 01 Dec 2009 Link to this post

    Hum I downloaded the examples but to be honest, there's just so much stuff in those pages with all the panels that I can't make head and tails out of it.
    Do you have any simpler example package (basic)?


    We simply declared the scheduler like this :

    <telerik:RadScheduler runat="server" ID="eventScheduler" 
                Width="850px" Height="100%" 
                OnAppointmentInsert="eventScheduler_AppointmentInsert" 
                OnAppointmentUpdate="eventScheduler_AppointmentUpdate" 
                OnAppointmentDelete="eventScheduler_AppointmentDelete" 
                DataKeyField="ID"  
                DataSubjectField="Subject"  
                DataStartField="Start"  
                DataEndField="End" 
                StartInsertingInAdvancedForm="true" 
                StartEditingInAdvancedForm="true" 
                OnAppointmentDataBound ="eventScheduler_AppointmentDataBound" 
                > 
        
          <AdvancedEditTemplate> 
                <uc1:AdvancedForm runat="server" EnableViewState="true" ID="AdvancedEditForm" 
                                            Subject='<%# Bind("Subject") %>' 
                                            Start='<%# Bind("Start") %>' 
                                            End='<%# Bind("End") %>'/> 
                </AdvancedEditTemplate> 
                <AdvancedInsertTemplate> 
                <uc1:AdvancedForm runat="server" ID="AdvancedInsertForm" 
                                            Subject='<%# Bind("Subject") %>' 
                                            Start='<%# Bind("Start") %>' 
                                            End='<%# Bind("End") %>'/> 
                </AdvancedInsertTemplate> 
        </telerik:RadScheduler> 

  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 04 Dec 2009 Link to this post

    Hello Emilie,

    We don't have anything simpler from the demo for Q3 2009 from the kb article(SchedulerCustomAdvancedFormQ3_2009.zip)

    If you need help with anything specific related to this demo, we will be glad to assist you.


    All the best,
    Peter
    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.
  6. Rob
    Rob avatar
    1 posts
    Member since:
    Jun 2011

    Posted 09 Jun 2011 Link to this post

    Hi,

    Was this ever resolved.

    I am currently expericening the same issue, the postback doesnt repopulate the controls, however the request.form object does contain all the text being posted back?
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Jun 2011 Link to this post

    Hello Rob,

    We have simplified the advanced templates since 2009. Do you use the user controls from the latest version of the Advanced Templates demo.

    All the best,
    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.

  8. nissim
    nissim avatar
    13 posts
    Member since:
    Aug 2010

    Posted 16 Apr 2012 Link to this post

    Hi,
    Thank you for the example, it's help me very much but still didn't slove my problem ,
    in my advanced form I have RadComboBox with Server Side Event and then
    all data binded to the advanced form is cleared and the state of the controls are reset.
    thanks for help,
    Bella.
  9. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 16 Apr 2012 Link to this post

    Hi Bella,

    Can you open a support ticket and send us a simple demo of the issue which we can test locally?

    Kind regards,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  10. avamboo_de
    avamboo_de avatar
    8 posts
    Member since:
    May 2010

    Posted 06 Mar 2013 Link to this post

    Hi,

    is the problem already fixed? I have the problem with the latest version of Radscheduler, I have some serverside events for my radcomboboxes on the form and after autopostback nothing is repopulated and the controls are empty.
  11. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 11 Mar 2013 Link to this post

    Hello,

    Could you please clarify whether you are experiencing the described problem with our latest version of the Advanced Templates demo.Please watch here that demo project when the "Room" RadComboBox  is subscribed for SelectedIndexChaged server-side event and a label control to print the selected item. All existing data on the form is persisted and the RadComboBox control is repopulated. Please clarify if there is different in your project and how we can replicate the issue that you are facing.
    Please find here a runnable project that contains a user control representing the RadScheduler advanced form.

    Regards,
    Boyan Dimitrov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  12. DAVY
    DAVY avatar
    1 posts
    Member since:
    Dec 2014

    Posted 20 Oct in reply to Boyan Dimitrov Link to this post

    Hi,

     

    I'm having the same problem, I tried to add ressource combo to implement cascading dropdown.

    But when I change the first combo no event is triggered to filter the second one.

    I can't figure out how to implement this.

    Could you help me.

    Regards

  13. Peter Milchev
    Admin
    Peter Milchev avatar
    137 posts

    Posted 25 Oct Link to this post

    Hello Davy,

    For the Cascading ComboBoxes functionality in the Advanced form I would recommend reviewing the Implement related RadComboBox controls in the advanced form Code Library and the RadScheduler Resource Type Cascading Dropdown forum thread. 

    If that does not help, I would like to ask you to modify the provided code library so that it implements your case or prepare a runnable sample project and send it to us in an official support ticket.

    Regards,
    Peter Milchev
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017