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

get_value in OnClientResponseEnding

4 Answers 88 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
Marshall Moorman
Top achievements
Rank 1
Marshall Moorman asked on 28 Oct 2009, 06:04 PM
If the value is changed in the OnServiceRequest, is there any way to access the new value in OnClientResponseEnding?

4 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 29 Oct 2009, 11:50 AM
Hi Marshall,

You cannot use the panel.get_value() client-side method, because the only thing that is sent back to the client, from the callback, is the HTML within the RadXmlHttpPanel. My recommendation is to somehow send the changed (new) Value together with the HTML content.  

Greetings,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David
Top achievements
Rank 1
answered on 24 Jun 2010, 08:48 PM
Hi Pero,

 Is there any OnClient Reponse that gets a value back from the code behind. I think I remember seeing a value pass back on one the telerik controls, maybe it was OnClientResponseError, not sure...    Is there a control with this feature?

  I ended up placing a value into a hidden field then use javascript to retrieve the value in the OnClientResponseEnding function. 

David
0
David
Top achievements
Rank 1
answered on 24 Jun 2010, 09:05 PM
I just remember, I was able to get a value back from the RadWindow, after closing the window. 
0
Pero
Telerik team
answered on 29 Jun 2010, 09:47 AM
Hello David,

As I said in my previous post, you can't access the modified Value of the XmlHttpPanel, because the value remains unchanged on the client-side. You can either send the value within the HTML received from the WebService or Callback, or use a hidden field (like you have done at the moment) and retrieve the value in the OnClientResponseEnding event of the XmlHttpPanel.

Greetings,
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
Tags
XmlHttpPanel
Asked by
Marshall Moorman
Top achievements
Rank 1
Answers by
Pero
Telerik team
David
Top achievements
Rank 1
Share this question
or