我在YUI中使用了一个DataTable
,我希望记录ID是从我的数据中获取而不是yui-rec1
...
我该怎么做?
我在YUI中使用了一个DataTable
,我希望记录ID是从我的数据中获取而不是yui-rec1
...
我该怎么做?
这是一个私有属性,名为_sId,用于存储记录ID。它遵循以下模式
this._sId = "yui-rec" + this._nCount;
抱歉,recordSet API 不允许您修改记录 ID。
dataTAble.getRecord
方法
YAHOO.widget.Record getRecord ( row )
For the given identifier, returns the associated Record instance.
Parameters:
row <HTMLElement | Number | String> DOM reference to a TR element (or child of a TR element), RecordSet position index, or Record ID.
Returns: YAHOO.widget.Record
Record instance.
http://developer.yahoo.com/yui/docs/YAHOO.widget.DataTable.html
还需要其他的吗?