This is a migrated thread and some comments may be shown as answers.

Hide selected rows client side

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
TRACEY AXELROD
Top achievements
Rank 1
TRACEY AXELROD asked on 02 Jun 2010, 03:34 PM
I have a RadGrid in VB where the user wants to be able to select rows and hide them temporarily so he doesn't have to see them.  He doesn't want them deleted from the table -- he just wants them to be hidden and able to be re-shown.  I don't want to have to go back to the server and database and hide the row through data calls each time a row is selected.  Is there a way to hide checkbox-selected rows client-side?  If not, is there a way to do it server-side without relying on data calls to the database?

Thanks in advance for any help you can provide.

- Tracey

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Jun 2010, 07:38 AM
Hi Tracey,

Invoke the set_visible() method of griditem from client side in order to hide the row.

aspx:
 
    <telerik:GridClientSelectColumn> 
    </telerik:GridClientSelectColumn> 


client code:
 
    function OnRowCreated() { 
    } 
    function OnRowSelected(sender, args) { 
        args.get_gridDataItem().set_visible(false); 
    } 
[Attach the OnRowCreated/OnRowCreating event in order to access the gridDataItem in RowSelected event]

-Shinu.
Tags
Grid
Asked by
TRACEY AXELROD
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or