0

此函数给出错误:

function RefreshGrid(){
    window.location.href="Form_ElameMamoreBazdid.aspx";
}
4

2 回答 2

1

** Java 脚本 **

function refreshGrid() {                   
    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();                  
}

** C# **

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{        
        Shomare_Darkhast = Convert.ToDecimal(Request.QueryString["Shomare_Darkhast"]);
        Grid_Bazdid.DataSource = Ent.ShowBazdid(Shomare_Darkhast);
        Grid_Bazdid.DataBind();

}
public ObjectQuery ShowBazdid(decimal Shomare_Darkhast)
{
   var List = from b in TBL_Bazdid
               where (b.Shomare_Darkhast == Shomare_Darkhast)
               join k in TBL_Karshenas on b.Code_Karshenas equals k.Code_Karshenas
               select new
               {
                   Radif = b.Radif,
                   Code_Karshenas = b.Code_Karshenas,
                   NameNameKhanevadegie_Karshenas = k.NameNameKhanevadegie_Karshenas,
                   Tarikh = b.Tarikh,
                   SaateShoro = b.SaateShoro,
               };
    return (ObjectQuery)List;
} 
于 2012-06-26T05:18:12.043 回答
0
function RefreshGrid()
{
  var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
  masterTable.rebind();
}

请看一下上面的代码。

通过对网格使用客户端绑定,请查看此帮助文档

于 2012-06-20T08:19:03.490 回答