protected void ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == "Search") { var goodsTextbox = e.Item.FindControl("TBox_GoodsName") as RadTextBox; if (goodsTextbox != null) { SearchGoodsName = goodsTextbox.Text.Trim(); } RG_NoCompareList.Rebind(); } }
protected void TvGoodsClassNodeClick(object sender, RadTreeNodeEventArgs e) { //GoodsName = null; if (!string.IsNullOrEmpty(e.Node.Value)) { GoodsClassId = new Guid(e.Node.Value); RG_NoCompareList.Rebind(); } else { GoodsClassId = Guid.Empty; } }