How to convert a store to json string?

  1. #1

    How to convert a store to json string?



    Hi, guys

    I've got a problem.

    I have a store like below:

                <ext:Store ID="Store2" runat="server" AutoLoad="true" OnRefreshData="Store2_Refresh">
                    <Reader>
                        <ext:JsonReader>
                            <Fields>
                                <ext:RecordField Name="Id" Type="Int" />
                                <ext:RecordField Name="Manufacture" />
                                <ext:RecordField Name="PartNo" />
                                <ext:RecordField Name="Quantity" Type="Int" />
                                <ext:RecordField Name="Desc" />
                            </Fields>
                        </ext:JsonReader>
                    </Reader>
                </ext:Store>
    now I want to convert the data in Store2 to a jason string and then send it to server end as a parameter.

    Does anybody know how?



  2. #2

    RE: How to convert a store to json string?

  3. #3

    RE: How to convert a store to json string?

    *Thanks vladimir, it helped a lot!

Similar Threads

  1. [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
  2. Replies: 0
    Last Post: Dec 01, 2011, 6:43 AM
  3. Replies: 4
    Last Post: Feb 01, 2011, 11:54 AM
  4. Replies: 0
    Last Post: Oct 18, 2010, 2:48 AM
  5. Replies: 3
    Last Post: May 14, 2009, 6:02 PM

Posting Permissions