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

Leaving NestedViews expanded after rebind

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 19 Nov 2009, 05:11 PM
I have a radGrid that when a row is clicked will open a nestedview form with additional details for those records.  In each nested view is a linkbutton that opens a RadWindow with a form for editing the record.  When the radwindow is closed I refresh the grid simply by doing this:
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As ObjectByVal e As AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest 
        grid_pending_credits.MasterTableView.SortExpressions.Clear() 
        grid_pending_credits.MasterTableView.GroupByExpressions.Clear() 
        grid_pending_credits.Rebind() 
    End Sub 

All of this works fine, but I want to be able to leave my NestedView expanded or collapsed currrent state active.  When I close the radwindow now the grid refreshes and the nestedviews collapse to their original state.

Is this possible?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Nov 2009, 11:06 AM
Hello Shawn,

Check out the following code library submission which demonstrates a similar scenario.You can use the same logic and alter it according to your requirement:
Retain expanded/selected state in hierarchy on rebind

Thanks
Princy.
Tags
Grid
Asked by
Shawn
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or