网格视图无法刷新

时间:2015-11-03 08:16:17

标签: c# asp.net ajax gridview

我试图反弹我的数据并在protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) { if (e.Argument == "Rebind") { int status = Convert.ToInt32(ViewState["status"]); BindGrid(status); } } protected void grdCheckOutList_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Label lb = new Label(); Button btn = (Button)e.Row.FindControl("btnSendMsg"); DataRowView rowView = (DataRowView)e.Row.DataItem; if (!String.IsNullOrWhiteSpace(rowView[9].ToString())) { lb.Text = rowView[9].ToString(); e.Row.Cells[6].Controls.Remove(btn); e.Row.Cells[6].Controls.Add(lb); } } } private void BindGrid(int status) { ViewState.Add("status", status); grdCheckOutList.DataSource = business.GetListOFRequestByStatus(status); grdCheckOutList.EmptyDataText = "nothing found"; grdCheckOutList.DataBind(); } 回发后刷新我的网格,但我的网格不会刷新,我也有一些网格行数据绑定替换,实际上替换不会发生,任何想法如何解决它?

 var values = [];
 jsonContent.forEach(function(obj) {
     obj.forEach(function(o) {
         o['public-api-path'].forEach(function(i) {
             values.push(i['edge-label']);
         });
     });
  });

注意:我已经跟踪了这些功能并且它们实际上正在运行,但结果不会显示出来。

更多信息:在这个页面我有一个方法打开一个telerik radwindow弹出窗口,在弹出窗口我更新一个记录在DB中,关闭弹出窗口后我想刷新我的网格并显示一个labal而不是我的gridview中的按钮

0 个答案:

没有答案
相关问题