all value don't have parent value match

4 posts, 0 answers
  1. Olivier
    Olivier avatar
    146 posts
    Member since:
    Nov 2010

    Posted 19 Nov 2010 Link to this post

    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
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 23 Nov 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Olivier
    Olivier avatar
    146 posts
    Member since:
    Nov 2010

    Posted 23 Nov 2010 Link to this post

    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
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 26 Nov 2010 Link to this post

    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.
Back to Top