CJOE'S PROGRAM NOTE - Do Something Cool
橫幅廣告
顯示具有
DataTable
標籤的文章。
顯示所有文章
顯示具有
DataTable
標籤的文章。
顯示所有文章
2012年2月20日 星期一
YUI 得知Datatable完成的方法
If you want to know that when is the datatable done, you can subscript the "postRenderEvent" event.
Juts like:
myDataTable.subscribe( 'postRenderEvent', function()
{
//Do something
});
You can see
here
in more detail.
YUI 手動取得Datatable資料內容
IF you want to get datatable by a manual way, you can use the following code:
myDataTable.getRecord(0).getData("id");
myDataTable
is your datatable name.
The parameter in getRecord is row number. (0 ~ the numebr of row - 1)
The parameter in getData is a key name. You have to specifically assign that.
較舊的文章
首頁
訂閱:
文章 (Atom)