Hello Support and Telerik Team,
I need to solve the following Grid behavior.
I use a hierachical RadGrid to display a Overview in a GRid with 4 Layers. On selecting a Item I redirect to the related Detail Page, If i go back from there, I need to restore the last Grid View
The Rad Grid is bound with 4 SQLDatasoures, one for each Grid / Subgrid Layer
I need to save an restore
> selected Page
> PageSize
> Last Search
> Last Hierachical Structure ( all expanded Items in the last View )
The First ponits are solved, but I find no good way to solve the last Point with accepable Performance.
I need to save each expaned Item of the Grid, and when the User come backs to page, I need to restore the last View.
I tryed to use the Itemcommand Event to save the Expaned Items with HierachicaltemIndex.
I tryed to use the radGrid_Prerender Event to restore the view.
1. Problem
> The First Expand Layer Action fires no Postback, because the Data seems to be Precached in the Grid on First Load
> The Sec Expand Layer fires a Postback, but I wonder how to find the Partent Hierachicalindex
In the Prerender i walk through all Hierachical Items, and If the Hierachical Index is in my Saved List, I set Expanded = true.
Because the first layer makes no Postback, It is never in the List and I can't expand it, If I expand a Child, the Partent is not expaned automatically.
One Point which makes the behavior mre difficult is, that the Overview and the Detail is in one aspx Page with a Muliview Control in a Updatepanel. Switching between Master and detail makes only a simpel Postback, no complete Reload of the hole page-
Is there a known best Practise to solve my behavior?
Kind Regards