XMLHttpPanel / .svc / return object / etc.

4 posts, 0 answers
  1. Chris Zavaleta
    Chris Zavaleta avatar
    10 posts
    Member since:
    Jul 2009

    Posted 17 Sep 2009 Link to this post

    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

     

        
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 22 Sep 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris Zavaleta
    Chris Zavaleta avatar
    10 posts
    Member since:
    Jul 2009

    Posted 22 Sep 2009 Link to this post

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

    Posted 24 Sep 2009 Link to this post

    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.
Back to Top