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

Can't get data to show. Please help!

5 Answers 57 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Logan Marshall
Top achievements
Rank 2
Iron
Logan Marshall asked on 13 Mar 2014, 08:13 PM
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="WebApplication2.WebForm1" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
 
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
 
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
 
     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
 
     <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
 
          <telerik:RadTreeList ID="RadTreeList1" runat="server"
              DataSourceID="SqlDataSource1" ParentDataKeyNames="REPORTS_TO"
              DataKeyNames="EMP_ID" AutoGenerateColumns="False" Width="617px">
 
               <Columns>
 
                    <telerik:TreeListBoundColumn DataField="EMP_ID" UniqueName="EMP_ID" HeaderText="EMP_ID"></telerik:TreeListBoundColumn>
 
                    <telerik:TreeListBoundColumn DataField="REPORTS_TO" UniqueName="REPORTS_TO" HeaderText="REPORTS_TO"></telerik:TreeListBoundColumn>
 
                    <telerik:TreeListBoundColumn DataField="SALES" UniqueName="SALES" HeaderText="SALES"></telerik:TreeListBoundColumn>
 
                     
 
               </Columns>
 
          </telerik:RadTreeList>
 
     </telerik:RadAjaxPanel>
 
     <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT "EMP_ID", "REPORTS_TO", "SALES" FROM "TREE_LIST_TEST""
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Mar 2014, 04:15 PM
Hello Logan,

I tested the provided code and it works as expected on my side. You can find it attached and try to understand what is the difference in your case.

Regards,
Pavlina
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Logan Marshall
Top achievements
Rank 2
Iron
answered on 14 Mar 2014, 07:16 PM
Still no data :(.  Also seems like a weird bug when I go to "edit columns" after to add/change some they all disappear.  I'm using VS 2010 SP1.  I tried reinstalling Dev Craft Complete, no luck.  Now i'm trying to install VS 2013 with Dev Craft Complete to see if the problem remains. If you have any ideas on how to fix this possibility "corrupt" dev craft situation, please let me know.  Thanks for your help so far!  You guys, as always provide great support! Which is why I love your products!
0
Logan Marshall
Top achievements
Rank 2
Iron
answered on 14 Mar 2014, 11:50 PM
Hi Again, so I tried installing VS 2013 with Dev Craft Complete and still no luck on the Tree List.  Also Edit Columns still deletes all columns when you add one.  Maybe they're related?  Any thoughts?
0
Pavlina
Telerik team
answered on 19 Mar 2014, 09:41 AM
Hi Logan,

As I did not manage to observe the described issue using the provided code I will ask you to provide a screencast video where we can see this problem. Also confirm that you have only configured the TreeList declaratively and there is no related code behind in your project. If you have any code there, please share it with us.

Additionally, you mentioned that most probably the problem is related to the edit columns, however in the code you provided there is no edit column. Can you please confirm that you have observed the same behavior when you run the project I sent you? If not please specify what is the difference in your application, provide the whole code and step by step instructions how to replicate it on our side.

Regards,
Pavlina
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Logan Marshall
Top achievements
Rank 2
Iron
answered on 19 Mar 2014, 08:03 PM
Hi Again, its not an edit column problem, its when you click "edit columns" while in design mode of the web app they disappear when you click ok.  But either way consider this issue closed, I'm now using the TreeList control from Dev Express and it works great.  Thank you Telerik, I'll continue to use your other controls.  Cheers.
Tags
TreeList
Asked by
Logan Marshall
Top achievements
Rank 2
Iron
Answers by
Pavlina
Telerik team
Logan Marshall
Top achievements
Rank 2
Iron
Share this question
or