Hi
I'm using a couple of grids in my docks. When I try to enable Dock's EnableViewState function, I figured out I can't reach my grid's item.DataItem values anymore. What's the reason? Any help?
Here's my delete function:
Here's my init:
I'm using a couple of grids in my docks. When I try to enable Dock's EnableViewState function, I figured out I can't reach my grid's item.DataItem values anymore. What's the reason? Any help?
Here's my delete function:
| protected void btnDelete_Click(object sender, EventArgs e) |
| { |
| foreach (GridItem item in this.grdList.SelectedItems) |
| { |
| ShoppingCartItem cart = (ShoppingCartItem)item.DataItem; |
| SiteManager.Params.CurrentUserShoppingCart.Remove(cart); |
| } |
| RefreshLists(); |
| } |
Here's my init:
| protected override void OnInit(System.EventArgs e) |
| { |
| //find dock layouts |
| DockLayout dockLayout = (DockLayout)FindControl("dockLayout"); |
| dockLayout.EnableViewState = false; |
| dockLayout.StoreLayoutInViewState = false; |
| PrepareLayoutDocks(dockLayout); |
| //this.EnableViewState = false; |
| base.OnInit(e); |
| } |