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

GridTemplateColumn with RadDropDownTree

1 Answer 131 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 03 Jun 2014, 11:04 PM
I am using a RadDropDownTree in a GridTemplateColumn like the following.. when I get the add or edit the label is left justified and others are right justified
like this image...also the fonts are different...


<telerik:GridTemplateColumn HeaderText="Available To"  UniqueName="AvailableTo"
    Visible="true" Display="false">
    <EditItemTemplate>
        <telerik:RadDropDownTree ID="AvailableTo" runat="server" Width="250px" OnDataBound="RadDropDownTree_DataBound"
            DefaultMessage="Please select" DropDownSettings-AutoWidth="Enabled"
            DataSourceID="SqlDataAvailableTo" DataFieldID="PK" CheckBoxes="CheckChildNodes"
            DataFieldParentID="Parent_PK" DataTextField="Description" DataValueField="PK">
            <ButtonSettings ShowCheckAll="true" ShowClear="true" />
            <Localization Clear="Clear All" />
        </telerik:RadDropDownTree>
    </EditItemTemplate>
    <HeaderStyle HorizontalAlign="Center" />
    <ItemStyle Width="50px" Font-Size="Small" HorizontalAlign="Center" />
</telerik:GridTemplateColumn>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Jun 2014, 05:37 AM
Hi Ken,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end and take a look into the attached screenshots. Please provide your full code if it doesn't help.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" AutoGenerateEditColumn="True" CellSpacing="-1" GridLines="Both">
    <MasterTableView>
        <Columns>
            <telerik:GridBoundColumn DataField="OrderID" UniqueName="OrderID">
            </telerik:GridBoundColumn>
            <telerik:GridDateTimeColumn DataField="OrderDate" UniqueName="OrderDate">
            </telerik:GridDateTimeColumn>
            <telerik:GridTemplateColumn HeaderText="Available To" UniqueName="AvailableTo" Visible="true" Display="false">
                <EditItemTemplate>
                    <telerik:RadDropDownTree ID="AvailableTo" runat="server" Width="250px" DefaultMessage="Please select" DropDownSettings-AutoWidth="Enabled" DataSourceID="SqlDataAvailableTo" DataFieldID="id" CheckBoxes="CheckChildNodes" DataFieldParentID="parentid" DataTextField="text" DataValueField="id">
                        <ButtonSettings ShowCheckAll="true" ShowClear="true" />
                        <Localization Clear="Clear All" />
                    </telerik:RadDropDownTree>
                </EditItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle Width="50px" Font-Size="Small" HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Thanks,
Shinu.
Tags
Grid
Asked by
Ken
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or