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

Applying error 'style' and messages to controls from an Ajax call

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 01 Feb 2012, 02:10 PM
We are new to Telerik and are still in the evaluation stages.  I am putting together a prototype using the ASP. NET Ajax controls from Telerik and can't fiqure out how to present errors on the client.  Our prototype is ajax based.  So once the page is loaded on the client the user loads new data and updates changed data with Ajax calls.  We are using JQuery as our Ajax comunication script engine.  However, I have not been able to figure out how to configure the Telerik controls (such as the RadTextBox or RadDateInput)  to display with the error style and show a server error message returned from the Ajax call.  I am looking for some kind of client-side api that would support this scenario, but am not finding anything in the documentation.

Any help with this scenario is appreciated.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 06 Feb 2012, 01:11 PM
Hello David,

You can take a look at the code snippet in this post showing how to change the style of RadInput controls dynamically with javascript:
http://www.telerik.com/community/forums/aspnet-ajax/input/showing-error-style-programmatically.aspx#710331

The APIs for setting the controls' text are listed here:
http://www.telerik.com/help/aspnet-ajax/input-client-side-basics.html

Let me know if you have any questions about specific properties and methods.

Kind regards,
Tsvetina
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or