Welcome Guest Search | Active Topics | Sign In | Register

How to show or hide a row in a grid? Options
roja
Posted: Monday, January 31, 2011 5:22:06 AM
Rank: Newbie
Groups: Member

Joined: 1/28/2011
Posts: 4
Could you please give an example of how to show or hide a row in the grid client side?
eo_support
Posted: Monday, January 31, 2011 9:20:59 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please make sure you go over the documentation first:

http://doc.essentialobjects.com/library/1/clientapi_howto.aspx

If you still have any questions after that. Please let us know which part you have questions with and we will be happy to help.

Thanks!
roja
Posted: Wednesday, February 2, 2011 4:52:55 AM
Rank: Newbie
Groups: Member

Joined: 1/28/2011
Posts: 4
Thanks for your quick reply

My actual requirement is in the grid i have used buttons column. So when clicking on the button in a row or Item, automatically show or hide the below rows or items according to the button.(just like in a tree view expanding or collapsing) . Is it possible?
eo_support
Posted: Wednesday, February 2, 2011 8:16:52 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

It is possible to do that. You will need to call deleteItem and undeleteItem to show/hide a row. For example:

Code: JavaScript
var grid = eo_GetObject("Grid1");

//Hide the first item
grid.deleteItem(0);

//Show the first item
grid.undeleteItem(0);


Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.