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

AdvancedEditTemplate user control CANCEL button

6 Answers 175 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Stepan
Top achievements
Rank 1
Stepan asked on 04 Oct 2011, 01:50 PM
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.

6 Answers, 1 is accepted

Sort by
0
Ilya
Top achievements
Rank 1
answered on 04 Oct 2011, 03:56 PM
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" />
0
Stepan
Top achievements
Rank 1
answered on 06 Oct 2011, 07:51 AM
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.
0
Ilya
Top achievements
Rank 1
answered on 06 Oct 2011, 02:04 PM
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.
0
Ivana
Telerik team
answered on 10 Oct 2011, 03:42 PM
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
0
Nelson
Top achievements
Rank 1
answered on 15 Nov 2012, 05:46 PM
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
0
Plamen
Telerik team
answered on 16 Nov 2012, 11:39 AM
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.
Tags
Scheduler
Asked by
Stepan
Top achievements
Rank 1
Answers by
Ilya
Top achievements
Rank 1
Stepan
Top achievements
Rank 1
Ivana
Telerik team
Nelson
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or