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

PanelBar Hierarchical problem

2 Answers 33 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Aris
Top achievements
Rank 1
Aris asked on 17 Oct 2008, 07:21 AM
I am trying to create an hierarchical menu using RadPanelBar and Database data

Here are some sample data of my table:
CmaNodeId         ParentID     ValueText
       1                      null              Text1
       2                        1               Text2
       3                        1               Text3
       4                       null             Text4
       5                         4              Text5

These data are supposed to create something like this:
Text1
   Text2
   Text3
Text4
   Text5

Instead i get a
Text1
Text2
Text3
Text4
Text5
all nodes becoming parent

<telerik:radpanelbar id="RadPanelBar1" runat="server" DataSourceID="LLBLGenProDataSource2_2" 
    skin="Black" ExpandMode="FullExpandedItem"  
    DataFieldID="CmaNodeId"  
    DataFieldParentID="ParentId"  
    DataTextField="ValueText"

Anyone has an idea what i am doing wrong is something so simple?
Thanks in advance

2 Answers, 1 is accepted

Sort by
0
Aris
Top achievements
Rank 1
answered on 17 Oct 2008, 08:24 AM
I found that post
http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=9226

where a discussion between  Atanas Korchev from TELERIK and developers of LLBLGEN took place, this post is a bit old 2007, is there any workout with this or still pending?
0
Ed
Top achievements
Rank 1
answered on 17 Oct 2008, 10:33 AM
The obvious answer would be that there's something wrong in your database table, but presumably you've checked that?  It's probably worth posting the contents of your DB table (cut down if necessary) and also the ASP code for the DataSource LLBLGenProDataSource2_2, as that'll help find the problem.
Tags
PanelBar
Asked by
Aris
Top achievements
Rank 1
Answers by
Aris
Top achievements
Rank 1
Ed
Top achievements
Rank 1
Share this question
or