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
<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" DecorationZoneID="UploadDashboardWindow" Skin="Web20" /><telerik:RadWindowManager ID="RadWindowManager1" Runat="Server" Skin="Web20" Modal="True" KeepInScreenBounds="True" EnableShadow="True" Behaviors="Close, Move" VisibleStatusbar="False" ReloadOnShow="True" ShowContentDuringLoad="False" Behavior="Close, Move" Title="Confirm Action" IconUrl="~/Content/Dashboard/Icons/radwindow_confirmdelete.png"> <Windows> <telerik:RadWindow ID="HistoricalLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/HistoricalLocalSettings.aspx" OnClientShow="OnLocalSettingsShow" OnClientClose="OnHistoricalLocalSettingsClose" OnClientAutoSizeEnd="OnClientAutoSizeEnd" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" Title="Settings" Width="450px" AutoSize="True" AutoSizeBehaviors="Height" /> <telerik:RadWindow ID="DashboardGlobalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/DashboardGlobalSettings.aspx" OnClientShow="OnDashboardGlobalSettingsShow" OnClientClose="OnDashboardGlobalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Global Settings" MinHeight="337px" Height="337px" Width="450px" /> <telerik:RadWindow ID="CustomLocalSettingsWindow" Runat="Server" NavigateUrl="~/Dashboard/Dialog/Windows/CustomLocalSettings.aspx" OnClientShow="OnLocalSettingsShow" OnClientClose="OnCustomLocalSettingsClose" IconUrl="~/Content/Dashboard/Icons/radwindow_settings.png" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Settings" Width="450px" Height="215px" /> <telerik:RadWindow ID="ReportWindow" Runat="Server" Title="CableSolve Report Viewer" Width="600" Height="500" OnClientClose="OnReportWindowClose" /> <telerik:RadWindow ID="UploadDashboardWindow" Runat="Server" IconUrl="~/Content/Dashboard/Icons/drive-upload.png" OnClientClose="OnUploadDashboardClose" OnClientAutoSizeEnd="OnClientAutoSizeEnd" Title="Upload Dashboard" Height="150"> <ContentTemplate> <fieldset id="Upload Dashboard"> <legend>Upload Dashboard</legend> <telerik:RadUpload ID="RadUpload1" Runat="server" AllowedFileExtensions=".xml" Skin="Web20" MaxFileInputsCount="1" ControlObjectsVisibility="None" Height="40px" Width="230px" BorderWidth="0px" > </telerik:RadUpload> <div class="BottomButton"> <telerik:RadButton ID="RadButton1" Runat="server" Skin="Web20" Text="Upload"/> </div> </fieldset> </ContentTemplate> </telerik:RadWindow> </Windows></telerik:RadWindowManager>