开发者

I'm using YUI datatable. How do I tell once everything is loaded? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_如何学运维

This question does not appear to be about programming within the scope defined in the help center.

Closed 8 years ago.

Improve this question

http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html

Is it an event or something?


What are you using as a DataSource? If you care about when the DataSource is done loading data, you can use its doBeforeLoadData event which will allow you access to the DataSource before it is consumed by the DataTable.

Otherwise, if you are talking about "loaded" meaning that the table has finished being drawn, you can use the DataTable's postRenderEventevent.

There are a lot of events for these components that you can listen to.


You can use the DataTable's renderEvent as in:

myDataTable.subscribe("renderEvent", function (o) {
// do someting with the data
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜