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

Client-Side Expansion of Self-Hierarchical Grid (w/ unknown # of Detail Tables)

3 Answers 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 27 Mar 2009, 07:20 PM
We have a self-hierarchical grid that can have any number of detail tables at run time.  There could be 20 or there could only be two.

Based on what I've seen in other forum topics, as well as the various demos pertaining to self-hierarchical grids, I'm under the impression I need to add the appropriate DetailTable.HierarchyLoadMode="Client" value to each of the detail tables.

However, whenever I add a "stub" detail table and then the above setting, when I try and expand (or collapse) a node, I get an error indicating that "Microsoft JScript runtime error: 'parentNode' is null or not an object".

If I change the expansion to be server side, no errors occur.  Unfortunately, the performance for going back to the server is unacceptable.

How is one supposed to expand nodes on the client side w/o knowing the number of detail tables that will be experienced in production?

I'm running Q3 2008 ASPNET AJAX tools in VS 2008.

3 Answers, 1 is accepted

Sort by
0
Matt
Top achievements
Rank 1
answered on 30 Mar 2009, 01:25 PM
Bump for the Monday crowd.

Anyone?
0
Sebastian
Telerik team
answered on 31 Mar 2009, 11:31 AM
Hello Matt,

I tried to replicate the issue using this online demo of the product as basis for my tests. Can you please provide a live url where the erroneous behavior can be seen? Additionally, verify that you are using the latest release 2009.1.311 of RadControls for ASP.NET AJAX in your project.

Moreover, have in mind that with many levels on self-referencing hierarchy you may introduce performance penalty when choosing HierarchyLoadMode = Client (thus loading all items at once as explained here). Instead you may consider setting it to ServerOnDemand and ajaxify the grid via RadAjaxManager or RadAjaxPanel to simulate client-side behavior.

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Matt
Top achievements
Rank 1
answered on 31 Mar 2009, 12:37 PM
Thanks for the response, Sebastian, unfortunately, we're in the process of testing the new release (2009 Q1) against our product now to see what (if any) issues will arise.  Hopefully once we get to 2009 Q1, the issue I'm experiencing will resolve itself.

As for the demo, that's what I used as the basis for the logic behind the grid.

I'll put this aside for the next week or so until we've gotten 2009 Q1 installed and take another look
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Matt
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or