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.
"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
0
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
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
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
Hi Saritha,
Here are some helpful links:
Regards,
Veskoni
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Here are some helpful links:
- Data Binding How To > Loading Related SQL Tables
- Here you will find more info about the RadScriptManager. You need to click on the Register Telerik.Web.UI.WebResource.axd link from the smart tag.
- You can read about the installation and deployment procedures starting here: Which file do I need to install?
- You can check the RadTreeView / Getting Started / Building a Simple TreeView help article
- Here is the Troubleshooting section
Regards,
Veskoni
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center