Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing Telerik RadGrid how to hid a GridHyperLinkColumn from the client side?
    primarykey
    data
    text
    <p>I'm using the Telerik RadGrid and I'm doing client side databind. Here is my Grid:</p> <pre><code>&lt;telerik:RadGrid ID="radGrid_Assignments" runat="server" AllowPaging="True" AutoGenerateColumns="false" AllowSorting="true" AllowFilteringByColumn="true" &gt; &lt;PagerStyle Mode="NextPrevAndNumeric" /&gt; &lt;MasterTableView NoMasterRecordsText="No assigments found for the search criteria."&gt; &lt;Columns&gt; &lt;telerik:GridHyperLinkColumn HeaderText="Customer Name" DataTextField="CustomerName" Target="_customer" DataNavigateUrlFormatString="~/Modules/DataEntry/ProviderContact/Edit.aspx?id={0}" DataNavigateUrlFields="CustomerID" SortExpression="cust.Name" UniqueName="cust.Name" HeaderStyle-Width="200px" /&gt; &lt;telerik:GridBoundColumn DataField="JobTitle" HeaderText="Title" HeaderStyle-Width="250px" /&gt; &lt;telerik:GridBoundColumn DataField="ProviderName" HeaderText="Provider" HeaderStyle-Width="250px" /&gt; &lt;telerik:GridHyperLinkColumn DataNavigateUrlFields="SurveyType,EvaluationID,SurveyID" DataNavigateUrlFormatString="~/Modules/AssignmentPortal/Evaluation/Enter{0}.aspx?EvalID={1}&amp;sid={2}&amp;menu=false" DataTextField="SurveyName" HeaderStyle-Width="200px" HeaderText="Survey Name" SortExpression="s.Description" Target="_survey" UniqueName="s.Description" /&gt; &lt;telerik:GridBoundColumn DataField="ProductName" HeaderText="Product" HeaderStyle-Width="150px" /&gt; &lt;telerik:GridBoundColumn DataField="WorkPhone" UniqueName="cust.WorkPhone" SortExpression="cust.WorkPhone" HeaderText="Work Phone" HeaderStyle-Width="150px" /&gt; &lt;telerik:GridHyperLinkColumn HeaderText="Email" DataTextField="Email" UniqueName="cust.Email" DataNavigateUrlFormatString="mailto:{0}" DataNavigateUrlFields="Email" SortExpression="cust.Email" HeaderStyle-Width="300px" /&gt; &lt;telerik:GridBoundColumn DataField="NoteDateTime" HeaderText="Last Note Date" DataFormatString="{0:MM/dd/yyyy hh:mm tt}" HeaderStyle-Width="150px" /&gt; &lt;telerik:GridBoundColumn DataField="NoteText" HeaderText="Last Note" UniqueName="cln.NoteText" HeaderStyle-Width="400px" /&gt; &lt;/Columns&gt; &lt;/MasterTableView&gt; &lt;ClientSettings&gt; &lt;DataBinding Location="/AjaxServices/SearchService" SelectMethod="GetAssignmentsSearchResults" /&gt; &lt;ClientEvents OnCommand="showLoadingPanel" OnDataBound="OnClientDataBound" OnDataBinding="OnClientDataBinding" /&gt; &lt;/ClientSettings&gt; &lt;/telerik:RadGrid&gt; </code></pre> <p>I want to be able to hid the GridHyperLinkColumn with the HeaderText="KLAS Maps" when the DataNavigateUrlFields of SpatialCoordinatesKLASID is NULL. I just want an empty column. </p> <p>I can't use the traditional way using the server side OnItemDataBound event. Because this is loading on the client side. </p> <p>How can I do this? Thank you in advance for your help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload