我對Dojo來說比較陌生。我正在使用DataGrid,在其中一列中有一個文本框。當用戶在特定行的文本輸入中輸入一些數據時,我想知道網格的行索引。如何在Dojo中找到選定的網格行索引
'name' : 'Partner Column Name',
'field' : 'text',
'width' : '25%',
'field' : 'partnerColumnName',
'text-align': 'center',
'editable' : true,
'type' : dojox.grid.cells._Widget,
'formatter' : function()
{
return new dijit.form.TextBox({style:"width:100%", id: "textBox_"+counter++, onChange: function()
{
// Here I want to know the row index of the grid.
}
有人可以幫助我在這方面。
謝謝, 尼爾默爾庫馬爾博加迪