This is a migrated thread and some comments may be shown as answers.
all value don't have parent value match
3 Answers 24 Views
This is a migrated thread and some comments may be shown as answers.
Olivier
Top achievements
Rank 2
Olivier asked on 19 Nov 2010, 06:47 PM
Hi,

I have Q3 2010 asp.net ajax,  i found a bug when i implement with Programmatic data (BindtoDataset)
i have all value don't have parent value match. (in french :

Cette contrainte ne peut pas être activée, car toutes les valeurs n'ont pas de valeurs parentes correspondantes.

)
My table is like as :
id    parent_id  title
1     0               test1
2     0               test2
3     1               test3
4     2               test4
5     1               test5
6     2               test6

I don't understand cause if i implement with Ienumerable from my dataset it's works.

Have you an idea ?

thank's

3 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 23 Nov 2010, 09:22 PM
Hello olivier,

In the dataSource the records representing root nodes should have null for parentId.
This should solve it!


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Olivier
Top achievements
Rank 2
answered on 23 Nov 2010, 09:40 PM
Hello Nikolay

I will test tomorrow your solution, but why with class object (IEnumerable) i add programmaticaly from my dataset the same value,
it's work with zero in root node ?

thanks olivier
0
Peter
Telerik team
answered on 26 Nov 2010, 05:19 PM
Hello olivier,

Indeed, when Binding to Hierarchical Data the parent id must be null. However, when
Binding to ASP.NET DataSource Components (ObjectDataSource), the parent id can be 0.

Greetings,
Peter
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Asked by
Olivier
Top achievements
Rank 2
Answers by
Nikolay Tsenkov
Telerik team
Olivier
Top achievements
Rank 2
Peter
Telerik team
Share this question
or