Can Store.DateSource send sub object to client?

  1. #1

    Can Store.DateSource send sub object to client?

    [CODE]
    ...
    dataList.Add( new { Name = item.Name, Comment = item.Comment, Fields = 11 } );</PRE>Store.DataSource = dataList;
    Store.DataBind( );
    [CODE]</PRE>[CODE]
    ...
    dataList.Add( new { Name = item.Name, Comment = item.Comment, Fields = new int{ 11,12,13} } );
    Store.DataSource = dataList;
    Store.DataBind( );
    [CODE]</PRE>The first store can send Fields attribute to client, but the second condition is not working.
    Can store send object recursively?</PRE>Thanks</PRE>
  2. #2

    RE: Can Store.DateSource send sub object to client?

    Hi,

    You have to mark RecordField which references to the Fields property as complex
    <ext:RecordField IsComplex="true" Name="Fields" />
  3. #3

    RE: Can Store.DateSource send sub object to client?

    great!

    Thanks for your rapid reply!

Similar Threads

  1. [CLOSED] Is there a way to send Store baseParams during Update
    By anup in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 14, 2011, 7:55 AM
  2. Send complex object to AjaxMethod
    By glenh in forum 1.x Help
    Replies: 2
    Last Post: Aug 13, 2009, 10:01 AM
  3. [CLOSED] About Coolite client side object model
    By pumpkin in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 11, 2009, 2:50 AM
  4. Replies: 2
    Last Post: May 15, 2009, 10:21 AM
  5. Replies: 8
    Last Post: Sep 06, 2008, 7:02 PM

Posting Permissions