cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Selection in iGrid

Former Member
0 Kudos

Hi All,

There are more than one rows on iGrid and user needs to select multiple rows and send to SAP

But there are many options for multiple selection

1) shift key

2) control key

3) and selecting one row and dragging it to the last row

if user drags and select more than one rows then iGrid event does not recognizes the event and only the last row data goes to SAP

How multiple selection event could be recognized on dragging and selecting

Thanks

Namita

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

Don't use the SelectionEvent for this. Use an html button, which calls your JavaScript function. This way the user can select/deselect to their satisfaction, and then press the button to upload to SAP.

Regards,

Jeremy

Former Member
0 Kudos

Hi Jeremy,

How HTML button will help

If "Allow Multiple Selection " is checked and user selects multiple rows by any method

On click of HTML button how would we come to know how many rows are selected

If he selects by drag and drop how would we make out which rows are selected

Is it something on change of color or any other grid functionality

Thanks in advance

Namita

Former Member
0 Kudos

Hi Namita,

try these functions -

iGrid.getGridObject().getSelectedRowCount();

iGrid.getGridObject().getSelectedRow();

you can also put the functionality of shift select by using these functions.

Regards,

Anil

agentry_src
Active Contributor
0 Kudos

Hi Namita,

I think Jeremy was suggesting that the you perform your selections (and disable the Selection Event), then use the button to perform your updates to SAP upon those rows selected. The selection event fires everytime you choose a row and fires on the last row when highlighting by dragging across multiple rows, rather than on all that were selected. I think you need to use getGridObject().getSelectedRow() as the property.

Good luck,

Mike

agentry_src
Active Contributor
0 Kudos

getGridObject().getSelectedRow() should be getGridObject().getSelectedRowAt() and used in combination with getGridObject().getSelectedRowCount()

Mike

Edited by: Michael Appleby on Sep 25, 2008 2:58 PM

jcgood25
Active Contributor
0 Kudos

In case you are still struggling, I have attached a working example web page for you.

Regards,

Jeremy

Edited by: Jeremy Good on Sep 26, 2008 7:18 AM

I added the same file, this time with an extra txt extension to see if the forum s/w likes it better.

Former Member
0 Kudos

Hi Jeremy,

Thanks for the file

But I am not able to open it

I did right click and saved target as but it saved 0 bytes

Am i not saving it correctly or is there any other way to open it

Thanks

Namita

Answers (1)

Answers (1)

agentry_src
Active Contributor
0 Kudos

Hi Namita,

I am working on a 12.0.5 instance of MII and I cannot duplicate the drag and drop at the end of the grid. What version are you using and can you give more details into the steps you are using? Can you tell me what settings are turned off (usually the smaller subset) for the display template?

Thanks,

Mike

Former Member
0 Kudos

Hi Mike

Version is xMII 11.5

And the settings are Allow Multiple selection and Selection event

User wants to select more than one row and send to SAP

Thanks

Namita