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

self referencing with two field

5 Answers 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sandro De Matteis
Top achievements
Rank 1
Sandro De Matteis asked on 09 Sep 2008, 10:22 PM
Hi all,
i am looking for a control to manage (insert, update and delete) a dog pedigree.
As you can image i have a dog table like this

idDog, idFather, idMother, desName

and i wish to diplay, insert, update and delete the 4-level pedigree of the dog with a control like radGrid or TreeView with this orizontal look

(here i show 3 level pedigree)

                                    GrandGrandFather
                GrandFather
                                    GrandGrandMother
        Father
                                    GrandGrandFather
                GrandMother
                                    GrandGrandMother
dog
                                    GrandGrandFather
                GrandFather
                                    GrandGrandMother
        Mother
                                    GrandGrandFather
                GrandMother
                                    GrandGrandMother

Is there  any of the your control that can manage this case ?

Thanks in advance,
Sandro De Matteis

5 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 12 Sep 2008, 10:09 AM
Hello Sandro,

Both the grid and the treeview support hierarchical representation of data. An example with the treeview can be found here, and one with the grid is located here. If you are looking for a structure which could potentially have different levels, and different depth of the hierarchical levels, the treeview control will be more suitable.
I hope this information helps.

All the best,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sandro De Matteis
Top achievements
Rank 1
answered on 12 Sep 2008, 10:33 AM
HI, thanks for replay.

I can be able to modify the tree, inserting data, subtree etc, or only display the data ?

Thanks, Sandro
0
Yavor
Telerik team
answered on 12 Sep 2008, 12:32 PM
Hello Sandro,

You can also edti the data. This is demonstrated in the following example.

Regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sandro De Matteis
Top achievements
Rank 1
answered on 12 Sep 2008, 12:34 PM
Thanks again,
can be the item of the tree DropDownList ?

Thanks, Sandro
0
Yavor
Telerik team
answered on 12 Sep 2008, 12:37 PM
Hello,

Yes, as shown here.

All the best,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Sandro De Matteis
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Sandro De Matteis
Top achievements
Rank 1
Share this question
or