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

Collapse/Expand Missing

1 Answer 34 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
SDI
Top achievements
Rank 1
SDI asked on 11 Mar 2018, 01:43 AM

For the life of me i can not figure out why the collapse/expand are missing. I took the page out and put it in its own project and it still doesnt show. I removed all code and script code. Basically a skeleton, but the +/- are no where to be seen! I can drag and drop and the database is updating correctly and TreeList, but he doesnt add in the +/-. It never shows, not even reload with the new data.

You can see from the attached files that the tree is missing the +/- for the third task. I attached the table screen shot too. I also had a problem with BOOTSTRAP theme not even showing the lines for the tree +/-.

This is a huge issue, that doesnt seem to have any rhyme or reason why it is missing. Please throw a bone my way on why this would not work. 

I have another problem too - why can we not decorate the drag container? I would like all the row data not to show, just maybe a box or a label - "dragging" or something I want. If i put in a height for the TreeList the drag container matches this for some messed up reason. If that can be changed in CSS, please let me know. By all means change the default container height to match the drag row height NOT the grid height.

Thanks for the help Telerik

 

<html>
<head>
    <title>Test</title>
      </head>
<body>
    <form id="Form1" runat="server">
    <asp:ScriptManager runat="server" ID="ScriptManager1">
    </asp:ScriptManager>
                              
        <telerik:RadTreeList runat="server" ID="RadTreeListProjectTasks" Skin="Web20"
            DataSourceID="SqlDataSource1" DataKeyNames="TaskProjectDetailId" ParentDataKeyNames="ParentTaskProjectDetailId"
            AutoGenerateColumns="false" Width="100%">
 
            <ClientSettings AllowItemsDragDrop="true">
                <Selecting AllowItemSelection="true" />
            </ClientSettings>
 
            <Columns>
 
                <%--hidden columns for updating emails in user control--%>
                <telerik:TreeListBoundColumn UniqueName="TaskProjectDetailId" DataField="TaskProjectDetailId" Display="false" />
                <telerik:TreeListBoundColumn UniqueName="ParentTaskProjectDetailId" DataField="ParentTaskProjectDetailId" Display="false" />
                <telerik:TreeListBoundColumn UniqueName="UserProfileId" DataField="UserProfileId" Display="false" />
 
                <telerik:TreeListDragDropColumn UniqueName="TreeListDragDropColumn" HeaderStyle-Width="30px">
                </telerik:TreeListDragDropColumn>
 
                <telerik:TreeListTemplateColumn HeaderText="Source" DataField="Subject">
                    <ItemTemplate>
                        <table class="templateTable" width="400px">
                            <tr>
                                <td class="templateHeader">
                                    <asp:Label ID="Subject" runat="server" Text='<%# Bind("Subject") %>'></asp:Label>
                                    <asp:Label ID="Description" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:TreeListTemplateColumn>
            </Columns>
 
        </telerik:RadTreeList>
 
 
 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TestDbConnectionString %>"
            UpdateCommand="UPDATE [_TasksProjectDetailTBL] SET [ParentTaskProjectDetailId]=@ParentTaskProjectDetailId WHERE [TaskProjectDetailId] = @TaskProjectDetailId"
            SelectCommand="SELECT * FROM [_TasksProjectDetailTBL] TPD WHERE [TPD].TaskProjectMasterId IN (1)">
 
            <UpdateParameters>
                <asp:Parameter Name="TaskProjectDetailIdParentId" Type="Int16"></asp:Parameter>
                <asp:Parameter Name="TaskProjectDetailId" Type="Int64"></asp:Parameter>
            </UpdateParameters>
        </asp:SqlDataSource>
       
       </form>
</body>
</html>

1 Answer, 1 is accepted

Sort by
0
SDI
Top achievements
Rank 1
answered on 14 Mar 2018, 12:44 PM

No one? Well it seems that you cant have a auto generated data field as a level. Understandably so and its corrected. However, the other bug still exits with the drag container being the size of the RadTreeList height. Can this be corrected with CSS?

I want to hit on another topic. How is it possible to drag to the tree root? I can drag and drop all day between nodes, but you cant drag a child to reside on the root level. Ex blow -- Child C can be dragged to Parent B, but I can't seem to get it to be changed to Parent C, per say. Can you shed some light on this or some sample code would be nice? Your documentation for the RadTreeList really needs more code examples on those methods and properties.

Parent A

---- Child A

---- Child B

---- Child C

Parent B

---- Child A

Tags
TreeList
Asked by
SDI
Top achievements
Rank 1
Answers by
SDI
Top achievements
Rank 1
Share this question
or