Hi,
is there a piece of code which i can use to iterate over a grid view. I have a grid in which the cells contain different controls, like textbox, date chooser etc. What I want is on click of anywhere on a row I want to display the row data on a different panel. I was wondering if I can iterate over the grid using javascript and do the same.
Or if someone can suggest to fullfill my requirement. I can work even if I can bind the event to Server side managed bean method.
Hi:
I think you'll find these two examples helpful. they closely match your requirements.
http://www.componentsforjsf.com/WebGridExamples/faces/examplePages/RowSelectionWithPersistence.jsp http://www.componentsforjsf.com/WebAJAXExamples/faces/examplePages/ajaxWithSRM.jsp
I should add that NetAdvantage does not support "click anywhere" in a grid row, though this ability will be included in our next release, due out on the April.
Best,Jim