cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MII 1l2.2 iGrid show/display row

Former Member
0 Kudos

Hi,

I have an iGrid that is currently displaying data, i want to select a row and then hide it using a button

this is what i have done

   function RemoveReactors()

       {  

               var RemoveReactors = document.AppReactorsToCopyGrid;

               var  RemoveReactorsQryobj =RemoveReactors.getQueryObject(); //to

                document. AppReactorsToCopyGrid.getGridObject().getSelectedRow().style.visibility = hidden;

       }    

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lucas,

  document. AppReactorsToCopyGrid.getGridObject().getSelectedRow() will return you the row index and not the row object to set style on. Moreover, the applet Grid does not support styles as far as I know.

To make a row invisible, you delete a row (Just from the UI), to make it come back, you refresh the grid

It may look something like this

function hide()

{

            var row = iGrid.getGridObject().getSelectedRow();

           alert(row);

       iGrid.getGridObject().deleteRow(row);

}

  

function refresh()

{

         iGrid.updateGrid(true);

}

Let me know if it works.

Regards

Tufale Ashai.

Former Member
0 Kudos

Hi Ashai,

Thanks for your help , it works perfectly

Former Member
0 Kudos

Hi Ashai

Thanks it works

Former Member
0 Kudos

Glad to be of help Lucas.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Lucas,

Does the above logic work for you?

And what exactly you want to achieve? Do you just want to hide that particular row in the iGrid or you want to delete it in the back end?

Please elaborate..

Thanks & Regards,

Anuj

Former Member
0 Kudos

Hi Anuj,

I actually wanted it to hide the selected row in the grid but I found the solution and it now works

function hide()

{

var row = iGrid.getGridObject().getSelectedRow();

alert(row);

iGrid.getGridObject().deleteRow(row);

}

function refresh()

{

iGrid.updateGrid(true);

}