cancel
Showing results for 
Search instead for 
Did you mean: 

iGrid mulitple selection

Former Member
0 Kudos

Hi,

I have a iGrid in my page and allow multiple selection is enabled.

In java script I need capture all the selected rows. I tried using document.Grid.getGridObject().getSelectedRowCount()

document.Grid.getGridObject().getSelectedRow() but no luck.

Any one know how to capture multiple selections in iGrid.

Thanks,

Srini.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Thank you very much for your help.

Srini.

Former Member
0 Kudos

function setLine(){
      
    var RowCount = document.ProcOrdApplet.getGridObject().getSelectedRowCount();
    
    for (var x = 1; x <= RowCount; x++){ 
    	
    	var RowNumber = document.ProcOrdApplet.getGridObject().getSelectedRowAt(x);
    	
    	alert(document.ProcOrdApplet.getGridObject().getCellValue(RowNumber,2));
   	
   	}
}

It works better when you react to a button in a form than the actual igrid event.

Message was edited by:

christian libich

Former Member
0 Kudos

Hi.

I have it up and running. The appliet, you need the following param. set

<param name="AllowMultipleSelection" value="True">

Then in your javascript, the following should return the number of records selected....

NoSelected = BatchListView.getGridObject().getSelectedRowCount();

Then repeating something like this...

for(i=1;i<=NoSelected;i++) {

Row = BatchListGrid.getSelectedRowAt(i);

BatchListView.getGridObject().getCellValueByName(Row, "SegmentResponseGlobID");

}

Br

Poul