无法触发光滑的网格 viewportChanged 事件。它应该在页面加载时触发。有任何想法吗?
javascript:
grid.onViewportChanged.subscribe(function (e, args) {
alert('sdfsdfaasdfdsaf');
var vp = grid.getViewport();
loader.ensureData(vp.top, vp.bottom);
});
CS:
namespace OrderCatalog
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
override protected void OnInit(EventArgs e)
{
this.Load += new System.EventHandler(this.Page_Load);
}
}
}