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

Client Function to know the value of the Panel?

2 Answers 61 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 23 Apr 2010, 07:27 PM
I want to have a validator trigger an error when SOME (any) value exists in the panel.  If everything is good, the webservice just returns "";

How can I get that?  get_html(), get_value(), html() dont seem to work or be right, and the documentation is pretty gimped for the RadXmlHttpPanel.

2 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 28 Apr 2010, 04:08 PM
Hello Steve,

I am not sure that I completely understand your specific scenario. Could you please tell us, when do you try to access the value of the XmlHttpPanel? OnResponseEnding? OnClientResponseError?
In the OnResponseEnding client-side event, you have access to both, the content that will be pasted in the panel and the value passed from the client. The content can be accessed through the eventArgs, using the get_content() method, and the value through the sender using the get_value() method.
In the OnClientResponseError client-side event you have access only to the value, again through the sender XmlHttpPanel.
I have attached a simple project with XmlHttpPanel, that uses WebService to update its content and alerts the value and the content on response ending.

If this does not resolve your problem, please send us a fully working sample that demonstrates the issues, and state clearly what exactly you want to achieve?

Kind regards,
Pero
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 29 Apr 2010, 05:24 AM
Thank you, I'll try get_content() :)

Its a form validation item...so if the email address typed in has an error or already exists in the db I disable the input button...so I think I can run with this :)

Thanks
Tags
XmlHttpPanel
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Pero
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or