[CLOSED] How to get content of store from code behind

  1. #1

    [CLOSED] How to get content of store from code behind

    Hi,

    Below is the sample how we can bind the data to store. I expected to get these items of Store1 into the list variable.
    I found out that we can use: store.getRange() in javascript to get this. How to do the same thing from code behind?

    Thanks

    protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                this.Store1.DataSource = new List<Company>
                {
                    new Company(0, "3m Co", 71.72, 0.02, 0.03),
                    new Company(1, "Alcoa Inc", 29.01, 0.42, 1.47),
                    new Company(2, "Altria Group Inc", 83.81, 0.28, 0.34),
                    new Company(3, "American Express Company", 52.55, 0.01, 0.02),
                    new Company(4, "American International Group, Inc.", 64.13, 0.31, 0.49),
                    new Company(5, "AT&amp;T Inc.", 31.61, -0.48, -1.54)
                };
                this.Store1.DataBind();
            }
       }
    Last edited by Daniil; Sep 29, 2011 at 7:20 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Please investigate this thread:
    http://forums.ext.net/showthread.php?10705

Similar Threads

  1. Replies: 1
    Last Post: Nov 21, 2011, 8:42 AM
  2. Replies: 3
    Last Post: Jul 24, 2011, 1:57 PM
  3. Replies: 12
    Last Post: Jun 05, 2011, 8:08 PM
  4. Replies: 3
    Last Post: May 26, 2011, 5:18 AM
  5. [CLOSED] [1.0] Store inside container's content
    By Timur.Akhmerov in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 21, 2010, 8:52 AM

Posting Permissions