|
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?
|
|
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.aspxIf 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!
|
|
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?
|
|
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!
|
|