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

Hierarchyloadmode="Client" not allowing expand/collapse on client

3 Answers 148 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert Saddler
Top achievements
Rank 1
Robert Saddler asked on 17 Sep 2008, 11:05 AM
I have a RadGrid with 1 detail table, which I want populated once, and stored on the client.
I have set the HierarchyLoadMode="Client" on both the Radgrid and the mastertableview of the detailtables.
Within the clientsettings of RadGrid I have set AllowExpandCollapse="true".
When I step though the execution of my code, the '_DetailTableDataBind' event fires once for each 'master' row in the RadGrid (as I would expect) when the RadGrid populates.
I have put 2 buttons on my page 'Expand All' and 'Collapse All' which expand and collapse all grid items by calling a method on the server which iterates  MyGrid.MasterTableView.Items and sets the expanded property to true or false as appropriate. This works as I want.
What doesn't work is if I click the '+' or '-' next to each master row in order to expand or collapse the individual detailtable.
I get a javascript error along the lines of:
$find("ctl00_uws_PageContent_uxMidCol_uxMain_ctl04_AppContent_MyGrid_ctl00") has no properties

Which implies the object hasn't been created client-side?
Can anyone please help?

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 22 Sep 2008, 09:04 AM
Hi Robert,

Thank you for contacting us and for the explanation.

Can you replicate the issue in the sample project from the following code library thread (using the latest release 2008.2.826 of RadControls for ASP.NET AJAX)? I tried to reproduce the erroneous behavior but unfortunately to no avail. I will appreciate if you outline the differences between this case and yours - they can lead us to the source of the problem to eliminate it accordingly.

Kind regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Vinit
Top achievements
Rank 1
answered on 02 Jun 2012, 02:42 PM

Hi ,
  I got an issue when I use Hierarchy load mode as 'client". when my hierarchical grid is in ASPX page with client load mode, It work fine.
Expand collapse works fine.But when I put the same code in the user control , then with "client" hierarchy load mode expand column does not work. We just can't see the detail table.

If I change the load mode to the serverOnDemand / serverbind It works .

I have attached the file.

Please guide me , not able to understand why this is happening.

Regards
Vinit
0
Vinit
Top achievements
Rank 1
answered on 04 Jun 2012, 06:53 AM

Hi ,
  I got an issue when I use Hierarchy load mode as 'client". when my hierarchical grid is in ASPX page with client load mode, It work fine.
Expand collapse works fine.But when I put the same code in the user control , then with "client" hierarchy load mode expand column does not work. We just can't see the detail table.

If I change the load mode to the serverOnDemand / serverbind It works .

I have attached the file.

Please guide me , not able to understand why this is happening.

Regards
Vinit
Tags
Grid
Asked by
Robert Saddler
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Vinit
Top achievements
Rank 1
Share this question
or