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

How to add comments to part of a control in HTML?

1 Answer 405 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 05 Aug 2015, 11:14 PM

I'd much rather comment out a Telerik line in HTML than remove it.  Using <!-- --> yields an error.  Is this this possible?

    <telerik:RadGrid ID="Dashboard_RadGrid"
        AutoGenerateColumns="false"
        AllowPaging="true"
        OnNeedDataSource="Dashboard_NeedDataSource"
        OnItemDataBound="Dashboard_ItemDataBound"
        OnItemCommand="Dashboard_ItemCommand"
        PageSize="20"
        EnableViewState="true"
        SelectedItemStyle-CssClass="MeasuredResultsDetail"
        runat="server" >
        <ClientSettings EnableRowHoverStyle="true"
                        EnablePostBackOnRowClick="true" >
 
        <MasterTableView DataKeyNames="Build.ID, BuildResult.ID" Name="TableMain" >
            <Columns>
                <telerik:GridBoundColumn DataField="Build.BuildNumber" HeaderText="Build Number" HeaderStyle-Width="120px" />
                <telerik:GridBoundColumn DataField="BuildResult.CreationDate" HeaderText="Date" HeaderStyle-Width="140px" DataFormatString="<nobr>{0}</nobr>" />
 
<!--
                    <telerik:GridBoundColumn DataField="BuildResult.EvaluatorResultsErrorLevel" HeaderText="Full" HeaderStyle-Width="80px" />
    -->
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
 

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 07 Aug 2015, 03:16 PM
Hello Peter,

Try the following approach and let me know if it works for you:
<%--<telerik:GridClientDeleteColumn UniqueName="DeleteColumnName"></telerik:GridClientDeleteColumn>--%>

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or