Can't get data to show. Please help!

6 posts, 0 answers
  1. Logan
    Logan avatar
    23 posts
    Member since:
    Jan 2012

    Posted 13 Mar 2014 Link to this post

    <%@ 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>

  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 14 Mar 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Logan
    Logan avatar
    23 posts
    Member since:
    Jan 2012

    Posted 14 Mar 2014 in reply to Pavlina Link to this post

    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!
  5. Logan
    Logan avatar
    23 posts
    Member since:
    Jan 2012

    Posted 14 Mar 2014 in reply to Pavlina Link to this post

    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?
  6. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 19 Mar 2014 Link to this post

    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.

     
  7. Logan
    Logan avatar
    23 posts
    Member since:
    Jan 2012

    Posted 19 Mar 2014 in reply to Pavlina Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017