[ 2 posts ]

USEJAVA

  • Username: userjava
  • Joined: Wed Jun 27, 2012 2:41 pm
  • Posts: 2
  • Offline
  • Profile

Get data from edited cell YUI 2.9

Post Posted: Wed Jun 27, 2012 2:49 pm
+0-
I am integreating YUI2 (2.9) datatable with Struts app and having issues integrating this

i have created editable data table and i can edit the column what i want. I also want to pass a other column information like

---------------------
ID NAME
---------------------
1 ABC
2 XYZ

i made Name as ediatble and i can get the iformation using

Code:
var onCellEdit = function(oArgs) {   
             var elCell = oArgs.editor.getTdEl();   
             var oOldData = oArgs.oldData;   
             var oNewData = oArgs.newData; 
             
             alert(oOldData+"===="+oNewData);
}
Question
------------
1. How can i get ID of the column edited?
2. I am planning to pass these two as hidden files to my Action class. Is there any better way?

Thanks a Loooott
A

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: Get data from edited cell YUI 2.9

Post Posted: Wed Jun 27, 2012 11:18 pm
+0-
1) see: http://developer.yahoo.com/yui/docs/YAH ... _getColumn

2) What action class, which files? I don't understand.
  [ 2 posts ]
Display posts from previous:  Sort by  
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