cancel
Showing results for 
Search instead for 
Did you mean: 

How to get selected Row/Cell value in i5Grid

shaji_chandran
Participant
0 Kudos

Hi Friends,

Can anyone help to how to find the selected Row/Cell value of a i5Grid object. I am able to register the event handlers which are getting invoked on row/cell selection. But I want to know how can I get the value of selected Cell/Row. I would like to add selected Items from one i5Grid to another one.

So want to know how can I get and set the value of i5Grid object.

MII version 14.0 SP4 Patch

Thank in advance

Shaji Chandran

View Entire Topic
Former Member
0 Kudos

Hi Shaji,

you can use the following JS functions which are available in Script Assistant.

.

In the following Format.. in Java script

Grid.getGridObject().getSelectedCellColumn()

Grid.getGridObject().getSelectedCellRow()

...

you can get selected Cell value like this.

var col_no=Grid.getGridObject().getSelectedCellColumn();

    alert(Grid.getGridObject().getSelectedCellValue(col_no));

Regards,

Sriram

shaji_chandran
Participant
0 Kudos

Hi Sriram,

Thanks for your reply. I will try this.

BTW where did you get the above screenshot? Is it from MII workbench?

Thanks

Shaji

Former Member
0 Kudos

Yes Shaji,

This is how you can open script Assistant.

You have to drag that Line highlighted in Green color, upwards. Then you ll be able to see it

Regards,

Sriram