protected void Page_Load(object sender, EventArgs e) { if (Session["CategoryID"] != null) { ASPxCardView2.DataSource = dsProducts; ASPxCardView2.DataBind(); } }
protected void ASPxCardView2_CustomCallback(object sender, DevExpress.Web.ASPxCardViewCustomCallbackEventArgs e) { object masterKeyValue = ASPxCardView1.GetCardValues(Convert.ToInt32(e.Parameters), "CategoryID"); Session["CategoryID"] = masterKeyValue; ASPxCardView2.DataSource = dsProducts; ASPxCardView2.PageIndex = 0; ASPxCardView2.DataBind(); }