on 08-12-2013 7:14 AM
Hi all
How to clear an iGrid by just clicking on the button
Regards
Lucas
Hi Lucas,
Best to my knowledge, there is no specific applet method available for clearing an iGrid.
Way out here is to write a function for clearing iGrid by either setting the Query template for the grid as blank and refresh it, or if your query template accepts input parameters, then refresh the grid without passing any input parameters.
And it would be really great to know if someone knows any specific applet method for clearing an iGrid.
Thanks & Regards,
Anuj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anuj,
I also could not find the correct applet method of clearing the iGrid
I just passed an empty parameter and it cleared,. I thought there might be an applet method for doing this
function ClearReactors()
{
var FilterReactors = document.AppReactorsToCopyGrid;
var FilterReactorsQryobj =FilterReactors.getQueryObject(); //to
FilterReactorsQryobj.setParam(1," ");
AppReactorsToCopyGrid.refresh();
}
To keep things entirely on the client side you could use the deleteRow method (http://help.sap.com/saphelp_mii122/helpdata/en/4c/d57bccf29560c6e10000000a15822d/frameset.htm) and this would require a loop, and just delete row #1 for the corresponding grid's rowcount. You may also require an .updateGrid(false) at the end to force a repaint.
Purely cosmetic of course and doesn't do anything but 'erase' the cell content.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
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.