Client Function to know the value of the Panel?

3 posts, 0 answers
  1. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 23 Apr 2010 Link to this post

    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. Pero
    Pero avatar
    1156 posts

    Posted 28 Apr 2010 Link to this post

    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,
    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.
  3. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 29 Apr 2010 Link to this post

    Thank you, I'll try get_content() :)

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

Back to Top