此功能出错:
function RefreshGrid(){
window.location.href="Form_ElameMamoreBazdid.aspx";
}
答案 0 :(得分:1)
** Java Script **
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;
}
答案 1 :(得分:0)
function RefreshGrid()
{
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
masterTable.rebind();
}
请查看上面的代码。
通过对网格check out this help document使用客户端绑定!