Hi
In my grid view when I click on add new template I will see the following controls
Xyz (TextBox)
Abc (TextBox)
Def (TextBox)
CopyFrom (DropDown)
But When I edit the record, I want to display only
XYz
ABC
DEF
In the grid also I am not displaying CopyFrom as A column.
I tried in 2 ways but each one has their own issue which I am not able to figure it out.
First Way:
<telerik:GridTemplateColumn UniqueName="CopyTemplateColumn" Visible="false" HeaderText="CopyFrom">
<EditItemTemplate>
<telerik:RadComboBox DataSourceID="TemplateDataSourceForCopy" DataTextField="TemplateName"
DataValueField="Id" ID="ddlTargetTemplate" Width="100" Visible="true" runat="server">
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
When I am doing Visible="false" HeaderText="CopyFrom"
Prob: In the edit window also I am seeing “CopyFrom” Text since it is header text. But not seeing dropdown since I am taking care of this from code behind.
Could someone please suggest me how to hide this header text from edit window.
Second Way:
<telerik:GridTemplateColumn UniqueName="CopyTemplateColumn" Visible="false" HeaderText="CopyFrom">
<EditItemTemplate>
<asp:Label ID="lblCopy" runat="server" Text="Copy From" ></asp:Label>
<telerik:RadComboBox DataSourceID="TemplateDataSourceForCopy" DataTextField="TemplateName"
DataValueField="Id" ID="ddlTargetTemplate" Width="100" Visible="true" runat="server">
</telerik:RadComboBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
Prob:
When I am using Label without header text.
Controls are not aligning properly. Since HeaderColumn is null.
XYZ
ABC
DEF
CopyFrom
Could some one please suggest me to solve this issue.
I really apreciate it. Since I spent lot of time ont his but didn't get resolved.
Thanks in Advance
Usha