3.2.0

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
May 14,
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)
May 14,

This topic is archived.

See also:


Back to support forum