[CLOSED] Returning XML from an AJAX call to a store

  1. #1

    [CLOSED] Returning XML from an AJAX call to a store

    I was looking at this grid example:

    https://examples2.ext.net/#/GridPanel/Commands/Image_Command/


    I've got everything working, but when I return the same XML, like in this example, it doesn't work. Using MVC, how should I be returning this XML. I copied the XML from the response in the XHR call in the example.

    https://examples2.ext.net/Examples/G...=1338905203998

    I see that StoreResult and AjaxResult just convert to JSON. I tried returning as a string, but that didn't work either.

    I'm really just asking if there is an Ext.net 2.0 way to do it. I know I can find a class like below. I'm just wondering if there is a better way.

    http://stackoverflow.com/questions/1...in-asp-net-mvc
    Last edited by Daniil; Jun 06, 2012 at 4:40 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I think you should use XmlResult.
    http://forums.ext.net/showthread.php?18509
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    I think you should use XmlResult.
    http://forums.ext.net/showthread.php?18509
    already implemented that in the link i attached to the previous post. Just wondering if there was a built in Ext.Net method I didn't know about.

    thanks.
  4. #4
    Ok, got it.

    There is no any special thing in Ext.NET to deal with XML. Using XmlResult appears to be the best choice.

    Another approach could be a ContentResult with a respective Content-Type.
  5. #5
    ok, thanks!

Similar Threads

  1. [CLOSED] Call ajax and wait for response
    By Marcelo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 15, 2012, 10:33 AM
  2. Replies: 3
    Last Post: Jan 13, 2012, 1:07 PM
  3. how can I stop Ajax Call?
    By masudcseku in forum 1.x Help
    Replies: 3
    Last Post: Dec 19, 2010, 7:21 PM
  4. Treeview with Ajax call
    By ZB in forum 1.x Help
    Replies: 2
    Last Post: Apr 30, 2010, 12:51 AM
  5. [CLOSED] Call an AJAX function from the key map extension...
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 30, 2008, 9:57 AM

Posting Permissions