Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1250
Keep expanded rows while postback
posted

Hi,

I'am using WebHierarchicalDataGrid and want to keep expanded on client side rows as expanded after postback.

The scenario is following:

1. The grid has several levels.

2. User expands several rows on the client side and does a postback.

3. After postback I want all expanded rows are remained expanded.

Is it possible? I've tried to go through all rows before databind method of grid is called and store "Expanded" state of each row. But each row has NOT Expanded = false . I think it is because EnableDataViewState="false" (default option)

Please help.

Alexander

 

Parents
  • 33839
    posted

    Alexander,

    The default behavior of the grid is to keep expanded states over postbacks so long as you do not call ClearDataSource() or RefreshBehaviors().

    regards,
    David Young 

Reply Children