我在页面上有 ext.net GridPanel。GridPanel 包含一个按钮。单击按钮后如何强制刷新GridPanel?
更新:
protected void btnDelete_Click(object sender, DirectEventArgs e)
{
var rsm = egrDrivers.SelectionModel.Primary as RowSelectionModel;
var selectedRowsCollection = rsm.SelectedRows;
foreach (var key in selectedRowsCollection.Select(row => row.RecordID))
Facade.Vehicle.DeleteVehicle(Guid.Parse(key));
//how to force GridPanel refresh?
}