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

Validating Input in this Scenario

2 Answers 73 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 29 Dec 2008, 07:14 PM
Hello,

I have a Scheduler control, which uses an advanced edit/insert form (which is a user control).  The scheduler is also using the AjaxManager to prevent postbacks.

I need to validate that form.  Whenever I use validators in this edit/insert user control, I get an error.  So I switched to processing it manually, and then trying to display text in a label.  I get errors too.

Essentially, I get a "RadLoadingPanel1 control is not a registered script control (because it didn't call RegisterScriptDescriptors)."

I assume this is related to the AJAX post back (as I get the ASP.NET AJAX web proxy framework code to appear that you get whenever you do an AJAX web service call and get an error; I'm familiar with this code sample as I get it a lot :-;).

Anybody ever use validation in the scheduler using the AJAX settings?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Dec 2008, 02:50 PM
Hello Brian,

The sample project from this kb article uses validators in the user controls for the advanced template and everything works fine. I suggest you refer to this demo and if you continue to experience problem, it would be best to open a support ticket and send us a small demo yourself.


Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brian Mains
Top achievements
Rank 1
answered on 30 Dec 2008, 08:33 PM
I did run the second example with validation to work; I was wondering how the validator makes the textbox border red?  What triggers that?  I'm using a partial postback approach, which validates on the server, and I read that EnableClientScript has to be false for this to work.  But yours is enableclientscript set to true, so how is that different, considering the example does use a RadAjaxManager and setup partial postback for the scheduler?

I'm really confused...

Thanks.
Tags
Scheduler
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Peter
Telerik team
Brian Mains
Top achievements
Rank 1
Share this question
or