| Page 1 of 1 | [ 3 posts ] |
|
when i use the foloowing code
myDataTable.subscribe("cellClickEvent",function(oArgs) { var c = this.getTdEl(oArgs.target); alert(c.innerHTML); }); i am getting the following output in alert box <DIV class=yui-dt-liner id=yui-gen24>12</DIV> but the required output should be 12. |
Alberto SantiniYUI Contributor
|
Hello ravikiran.
Usually it is used the following snippet to retrieve the content of a cell: Code: myDataTable.subscribe("cellClickEvent", function (ev) { var target, column, field; target = ev.target; column = this.getColumn(target); if (column.key === "mycolumn") { field= this.getRecord(target).getData("myField"); } // ... } Regards, IceBox |
|
thanks icebox
|
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group