:: Forum >> Version 2 >>

Selected row/rows

Hi there,

Im evaluating the use of active widgets for my client and am making a demo for them (in Struts framework). i have the built a grid on the jsp and i can multi select rows. My question is that how can i pass the values/indices to the action class from the grid page.

Any help will be greatly appriciated.

Thanks
I. Hund
Monday, May 14, 2007
You should attach an event handler to the onSelectedRowsChanged event and put the value (array of the selected row indices) into the hidden input tag.

<input id="gridSelection" name="gridSelection" type="hidden" />
<
script>
grid.onSelectedRowsChanged = function(rowIndicesArray){
   
document.getElementById("gridSelection").value rowIndicesArray;
}
</
script>
 
Alex (ActiveWidgets)
Monday, May 14, 2007



This topic is archived.

Back to support forum

Forum search