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

Not getting SelfHierarchy to work properly

4 Answers 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
-DJ-
Top achievements
Rank 1
-DJ- asked on 30 May 2009, 01:16 PM
Hi guys,

I've been trying to implement self-referencing hierarchy in a grid, but not getting it to work.

Documentation:
http://www.telerik.com/help/aspnet-ajax/grdselfreferencinghierarchy.html

Demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx

The problem is that when I click the expand button nothing happens. In Firebug I get the following description:

_353.parentNode is undefined 
_toggleExpand()(click clientX=28, clientY=194, undefined)ScriptRe...=318ed896 (line 4864) 
onclick(click clientX=28, clientY=194)zZ2%2F3o...vQw%3D%3D (line 2) 
[Break on this error] var _355=_353.parentNode.parentNode; 

It points to:
ScriptResource.axd?d=f5247yF8mFQSNUezaysMu7egrLBLdhSVt05lttKDr_VMDoiX_VRdIH7dxSOgEVvXEncLy5lBAmaFxHk85Zb9Tw2&t=318ed896

Does anyone have a clue what might be going on here?

Regards,
-DJ-

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Jun 2009, 06:36 AM
Hi -DJ-,

Please find attached a simple runnable application that demonstrates the desired approach.
Give it a try and let me know if it works for you or if I am leaving something out.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
-DJ-
Top achievements
Rank 1
answered on 02 Jun 2009, 05:10 PM
Thank you Pavlina,

I'll check the demo asap.

Regards,
-DJ-
0
Accepted
Pavlina
Telerik team
answered on 03 Jun 2009, 12:17 PM
Hi -DJ-,

I am sending you another application with the implementation request by you.To prepare the project I followed our help topic for Self-referencing hierarchy. Please give it a try and let me know if you have other questions or problems.

Greetings,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
-DJ-
Top achievements
Rank 1
answered on 03 Jun 2009, 04:03 PM
Hi Pavlina,

As soon as I took a look at the Nwind database in the solution you sent me I realized I was complicating things.
I could and did easily achieve my goal by using a regular hierarchy.

Thanks for your help.

Regards,
-DJ-
Tags
Grid
Asked by
-DJ-
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
-DJ-
Top achievements
Rank 1
Share this question
or