AdvancedEditTemplate user control CANCEL button

7 posts, 0 answers
  1. Stepan
    Stepan avatar
    29 posts
    Member since:
    Mar 2011

    Posted 04 Oct 2011 Link to this post

    Dear TELERIK,

    I'm using custom user control as AdvancedEditTemplate in RadScheduler.

    Obviously, such a user control has COMMIT and CANCEL buttons.

    The sample which I found in your sample library suggested making both these buttons as server side buttons, with different command names.

    But as it often the case, CANCEL button in my application must do nothing but close the "popup" window, with no postback.

    Is it possible to set CANCEL button in this way?

    Many thanks!

    - Stepan.
  2. Ilya
    Ilya avatar
    67 posts
    Member since:
    Jul 2012

    Posted 04 Oct 2011 Link to this post

    Stepan,

    Yes its possible. here is an example of a Cancel button I am using in my project:

    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="false" />
  3. Stepan
    Stepan avatar
    29 posts
    Member since:
    Mar 2011

    Posted 06 Oct 2011 Link to this post

    ILYA,

    Thank you very much for your responce.

    But I'm affraid the button you suggest still initiate post back to server what I need to avoid...

    I need a client-side cancel button which would close the "pop-up" window and wouldn't do anything else...

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

    Posted 06 Oct 2011 Link to this post

    Yes, I didn't pay attention to it before but it looks like the page is being submitted when Cancel is clicked. I just checked Client Side events list located here and it does not look like they have anything in that regard. I would be interested to hear if anything can be done in this situation too.
  5. Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 10 Oct 2011 Link to this post

    Hello Stepan,

    Attached is a sample page, which shows how the advanced form of the RadScheduler (when not bound to a web service)  could be hidden without making a post-back to the server. The sample uses a simple user control as an advanced edit form.
    You should keep in mind that the modal property of the advanced form should be set to true, in order to see the RadScheduler when the button to hide the advanced from is clicked. 

    Also, have you considered using a web service binding as a data source for the RadScheduler. The closing of the advanced form when bound to a web service does not make a post-back to the server.

    More information about the web service binding could be found at the following help article: RadScheduler: Web Service Binding and/or the online web service binding demo at our web site: RadScheduler: Web Service Binding / Demo.

    Hope this helps.

    Regards,
    Ivana
    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
  6. Nelson
    Nelson avatar
    12 posts
    Member since:
    Nov 2010

    Posted 15 Nov 2012 Link to this post

    Hello,

    I am using web service binding and an AdvancedForm.ascx user control as found on the applicable Telerik tutorials. When using the user control, the form does appear.

    However, 'UpdateButton' on the control is not responding at all to click  and the CancelButton is forcing a full postback.

    Please advise on what to look for to eliminate that behavior.

    If I use webservice binding with the default AdvancedForms, they work without postbacks and function as expected.

    Thanks,
    Nelson
  7. Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 16 Nov 2012 Link to this post

    Hello Nelson,

     
    You can refer to the sample attached in this Code Library where such behavior is implemented as well and both the behaviors describes are working as expected. 

    Hope this will be helpful.

    Regards,
    Plamen
    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.
Back to Top