on 08-07-2013 8:54 AM
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;
}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
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.