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

[Solved] Error when creating child nodes

3 Answers 235 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Saritha
Top achievements
Rank 1
Saritha asked on 23 May 2008, 03:51 PM
Hi. I am getting the following error message:

"System.ArgumentException: Columns specified by DataFieldID/DataFieldParentID not found." 
I have the ParentID column in my tables with no null values.

Can anyone please tell me why am I still getting this error and how to resolve it.
Please let me know if there is any additional information needed to understand the scenario.

Thanks.
           

3 Answers, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 26 May 2008, 02:43 PM
Hello Saritha,

You shouldn't be getting this error if everything is properly set (e.g. no typos). If you are unable to find the cause of the problem, can you please open a support ticket and send us a sample project that reproduces the issue?

Thank you for your understanding.

Regards,
Dimitar Milushev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Saritha
Top achievements
Rank 1
answered on 27 May 2008, 08:47 PM
I want to display data from SQL database in Treeview control from four tables where the child and parent tables are related through ParentID and ID fields. My tables structure is as mentioned below:

Root table - Objectives
----------
ID varchar(10) Like(OBJ1, OBJ2..)
Description varchar(100)
Order int Order is the position of the item in the table)
ParentID varchar(10) --- Same as ID (OBJ1,OBJ2)


Child table - Areas
-----------
ID varchar(10) (Like Area1, Area2..)
Description varchar(100)
Order int
ParentID varchar(10) (ParentID = Objectives.ID)

Grand-Child  table - Elements
-----------
ID varchar(10) (Like Element1, Element2)
Description varchar(100)
Order int
ParentID varchar(10) (ParentID = Areas.ID)

Grand Grand Child table - Sub Elements
-----------
ID varchar(10) (Like SubElement1, SubElement2)
Description varchar(100)
Order int
ParentID varchar(10) (ParentID = Elements.ID)

I am working on to get the tree structure as below

Objectives 1 
    -Area 1.1 
        -Element 1.1.1 
            -SubElement 1.1.1.1 
            -SubElement 1.1.1.2 
        -Element 1.1.2 
            -SubElement 1.1.2.1 
            -SubElement 1.1.2.2 

    -Area 1.2 
        -Element 1.2.1 
            -SubElement 1.2.1.1 
            -SubElement 1.2.1.2 
        -Element 1.1.2 
            -SubElement 1.2.2.1 
            -SubElement 1.2.2.2

Objectives 2 
    -Area 2.1 
        -Element 2.1.1 
            -SubElement 2.1.1.1 
            -SubElement 2.1.1.2 
        -Element 1.1.2 
            -SubElement 2.1.2.1 
            -SubElement 2.1.2.2 

    -Area 2.2 
        -Element 1.2.1 
            -SubElement 2.2.1.1 
            -SubElement 2.2.1.2 
        -Element 1.1.2 
            -SubElement 2.2.2.1 
            -SubElement 2.2.2.2

I am able to display data only for the first level. I keep getting various errors apart from the earlier mentioned error. I am not able toi reproduce the error again as I tried many different options. 
Each time I am trying to run the code after adding the child nodes. Its been 4 working days now I am trying to get this working.  Few of the errors are below:
1. " ~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config."
2. Could not load file or assembly 'Telerik.Web.UI
3. Could not find assembly 'Telerik.Web.Controls

I understand it may sound silly but could you please providew step by step instructions right from the point of adding the Treeview control or provide me with a link which I can refer. I believe I am adding all the required dlls and references. Please let me know if you need any other information.

Thanks
Saritha
0
Veselin Vasilev
Telerik team
answered on 29 May 2008, 01:47 PM
Hi Saritha,

Here are some helpful links:
Feel free to contact us any time you cannot find something in the support resources.

Regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Saritha
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Saritha
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or