Skip to Content
author's profile photo
Former Member

iGrid mulitple selection

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 03:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 03:22 PM
    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 23, 2007 at 04:02 PM

    Hi,

    Thank you very much for your help.

    Srini.

    Add comment
    10|10000 characters needed characters exceeded