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

Prevent Resizing of column in Edit Mode

1 Answer 32 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Rey
Top achievements
Rank 1
Rey asked on 20 Mar 2014, 08:33 AM
Hi Sir/Ma'am

I have a problem when adding and editing in the treelist, the column automatically shrink and giving me a empty white space in the right side, see the attached image

Thanks and Regards,
<telerik:RadAjaxPanel ID="pnl" runat="server">
    <telerik:RadTreeList ID="rdlMenu" Skin="Office2007" runat="server" DataKeyNames="Id" ParentDataKeyNames="ParentId" AutoGenerateColumns="false" OnItemCommand="rdlMenu_ItemCommand" OnNeedDataSource="rdlMenu_NeedDataSource"
        OnInsertCommand="rdlMenu_InsertCommand" OnItemCreated="rdlMenu_ItemCreated">
        <Columns>
            <telerik:TreeListEditCommandColumn UniqueName="InsertCommandColumn" ButtonType="ImageButton" ShowEditButton="false" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="80px"></telerik:TreeListEditCommandColumn>
            <telerik:TreeListBoundColumn DataField="Id" UniqueName="Id" HeaderText="Id" Display="false">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="ParentId" UniqueName="ParentId" HeaderText="ParentId" Display="false">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="Position" UniqueName="Position" HeaderText="Position">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="Description" UniqueName="Description" HeaderText="Descriptionn">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="URL" UniqueName="URL" HeaderText="URL">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="Division" UniqueName="Division" HeaderText="Division">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="Escalation" UniqueName="Escalation" HeaderText="Escalation">
            </telerik:TreeListBoundColumn>
            <telerik:TreeListBoundColumn DataField="IsPortalAdmin" UniqueName="IsPortalAdmin" HeaderText="IsPortalAdmin">
            </telerik:TreeListBoundColumn>
 
            <telerik:TreeListButtonColumn CommandName="Edit" Text="Edit" UniqueName="EditCommandColumn" ButtonType="ImageButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="80px"></telerik:TreeListButtonColumn>
            <telerik:TreeListButtonColumn UniqueName="DeleteCommandColumn" Text="Delete" CommandName="Delete" ButtonType="ImageButton" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="80px"></telerik:TreeListButtonColumn>
        </Columns>
        <EditFormSettings EditFormType="Template">
            <FormTemplate>
                <div class="editTemplate">
                    <asp:HiddenField ID="hdnId" runat="server" Value='<%# Bind("Id") %>' />
                    <asp:HiddenField ID="hdnParentId" runat="server" Value='<%# Bind("ParentId") %>' />
                    <table>
                        <tr>
                            <td>Position</td>
                            <td>
                                <asp:TextBox ID="txtPosition" Text='<%# Bind("Position") %>' runat="server" Width="30px">
                                </asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>Description:
                            </td>
                            <td colspan="2">
                                <asp:TextBox ID="txtDescription" Text='<%# Bind("Description") %>' runat="server" Width="100%">
                                </asp:TextBox>
                            </td>
                            <td></td>
                        </tr>
                        <tr>
                            <td>URL:
                            </td>
                            <td colspan="3">
                                <asp:TextBox ID="txtURL" Text='<%# Bind("URL") %>' runat="server" Width="100%">
                                </asp:TextBox>
                            </td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td>Division:
                            </td>
                            <td>
                                <asp:TextBox ID="txtDivision" Text='<%# Bind("Division") %>' runat="server" Width="100%">
                                </asp:TextBox>
                            </td>
                            <td>Escalation:
                            </td>
                            <td>
                                <asp:TextBox ID="TextBox4" Text='<%# Bind("Escalation") %>' runat="server">
                                </asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>IsPortalAdmin:                                  
                            <asp:CheckBox ID="chkAdmin" runat="server" />
                            </td>
                            <td></td>
                            <td>
                                <telerik:RadButton ID="btnUpdate" Text='<%# (Container is TreeListEditFormInsertItem) ? "Insert" : "Update" %>'
                                    runat="server" CommandName='<%# (Container is TreeListEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                    Icon-PrimaryIconCssClass="rbOk">
                                </telerik:RadButton>
 
                                <telerik:RadButton ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                    CommandName="Cancel" Icon-PrimaryIconCssClass="rbCancel">
                                </telerik:RadButton>
                            </td>
                        </tr>
                    </table>
                </div>
            </FormTemplate>
        </EditFormSettings>
    </telerik:RadTreeList>

1 Answer, 1 is accepted

Sort by
0
Galin
Telerik team
answered on 25 Mar 2014, 09:13 AM
Hi Rey,

Thank you for reporting this issue to us. I forwarded it to our developers and it will be fixed in the next internal build.

As a token of gratitude for sharing your feedback please find your Telerik points updated.

Regards,
Galin
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
TreeList
Asked by
Rey
Top achievements
Rank 1
Answers by
Galin
Telerik team
Share this question
or