Sep 26, 2011, 8:10 AM
[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
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&T Inc.", 31.61, -0.48, -1.54)
};
this.Store1.DataBind();
}
}
Last edited by Daniil; Sep 29, 2011 at 7:20 AM.
Reason: [CLOSED]