[CLOSED] Convert json to XML Gridpanel rows values

  1. #1

    [CLOSED] Convert json to XML Gridpanel rows values

    Hi,

    currently I taking grid value from view to controller like bellow,
    which return a JSON string.Is there any way to get this value as XML format.

    de.Click.ExtraParams.Add(new Parameter
                                {
                                    Name = "values",
                                    Value = "Ext.encode(#{GridPanel1}.getRowsValues())",
                                    Mode = ParameterMode.Raw
                                });
    Last edited by matrixwebtech; Nov 05, 2014 at 12:06 PM.
  2. #2
    Hi @matrixwebtech,

    This example demonstrates how to get an XmlNode from a submitted GridPanel's data.
    https://examples2.ext.net/#/GridPane...mit_Two_Grids/
  3. #3
    Thanks for your reply.
    but is there any technique to send data to controller as XML format not JSON.
    Last edited by matrixwebtech; Nov 05, 2014 at 12:06 PM.
  4. #4
    Could you, please, clarify why?

    Well, I think there is a possibility to convert a JSON object to an XML format via JavaScript. Though, as far as I can remember, there is no such a convert function in Ext.NET or ExtJS. In any way, an XML object is going to be sent to server as a string. This string is supposed to be deserialized on server side. Personally, I would prefer to convert JSON to XML.
  5. #5
    Hi Daniil Thanks for your reply,
    I will go with your suggestion.
    Last edited by matrixwebtech; Nov 05, 2014 at 12:06 PM.

Similar Threads

  1. [CLOSED] Convert List<object> to Json
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 16, 2012, 4:08 AM
  2. [CLOSED] JSON object property: convert to Date value
    By supera in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 14, 2012, 2:50 PM
  3. Replies: 1
    Last Post: Mar 29, 2012, 10:42 PM
  4. Replies: 0
    Last Post: Dec 01, 2011, 6:43 AM
  5. How to convert a store to json string?
    By mcdonald in forum 1.x Help
    Replies: 2
    Last Post: Apr 13, 2009, 12:14 PM

Posting Permissions