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

XMLHttpPanel / .svc / return object / etc.

3 Answers 66 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
Chris Zavaleta
Top achievements
Rank 1
Chris Zavaleta asked on 18 Sep 2009, 03:41 AM
Regarding the XMLHttpPanel, I have a couple of questions.

  • Is the return data as small as say a json string would be or is the return package in fact json?
  • I see examples that talk to .asmx files (web services) but will it talk to a .svc file (wcf service)?
  • Once the data is retrieved, how does the data need to be packaged and returned?  Does it just go into a dictionary<obj, obj> or what? Or, can I just serialize my data into json myself and just return a json string?

Thanks much for the info...

chris

 

    

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 22 Sep 2009, 12:38 PM
Hi Chris,

In reference to your questions:

  • All that comes back from the server is pure HTML for the content within the XmlHttpPanel (No ViewState, No hidden fields). It does not matter if WebServices or Callbacks are used. You can always see what is posted and returned to/from the server by running the default online example of the RadXmlHttpPanel and using Firebug, Fiddler or other dev tools.
  • Yes, the XmlHttpPanel can be configured to use an AJAX Enabled WCF service. Please take a look at this video where it is explained how to setup a simple project with RadXmlHttpPanel and Ajax enabled WCF service.
  • You need to return the HTML of the content hosted within the panel. In the default example of the RadXmlHttpPanel, in the case when WebServices are used, a string containing the HTML content is sent back to the panel. You can explore the source code of this example in your telerik installation folder, and see how exactly the content is packaged and returned to the panel, when WebServices are used. 

Here are some more learning resources that I think will be helpful:

- RadXmlHttpPanel documentation
- Online demos


All the best,
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
Chris Zavaleta
Top achievements
Rank 1
answered on 22 Sep 2009, 02:40 PM
Pero,
Great, one problem I'm having is that when I place a RadListBox with transfer functionality in the xmlpanel, the RadListBox functionality stops working.  I can't transfer, select or anything. When the list box is outside of the xmlpanel, it works fine.  Any thoughts on this?

cz
0
Pero
Telerik team
answered on 24 Sep 2009, 08:56 AM
Hello Chris,

We are still working on a proper support for the RadControls hosted inside the RadXmlHttpPanel,  and at the moment not all of them will work as expected when inside the panel. Unfortunately the RadListBox control is one of the controls that are not currently supported by the RadXmlHttpPanel.

If you want you can test your project with the latest internal build and you will see that the RadListBox placed inside a RadXmlHttpPanel is working properly.

Sincerely yours,
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.
Tags
XmlHttpPanel
Asked by
Chris Zavaleta
Top achievements
Rank 1
Answers by
Pero
Telerik team
Chris Zavaleta
Top achievements
Rank 1
Share this question
or