on 08-23-2007 3:59 PM
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.
Hi,
Thank you very much for your help.
Srini.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.