Thanks for your reply. You see the problem is that , it is template column which you cant access this way on the client side , after hassabling i realised that i can only do this on the server side on the "ItemDatabound" event"
thanks
Marked as answer by vuyiswamb on Feb 28, 2012 05:21 AM
vuyiswamb
Member
57 Points
140 Posts
How to Hide telerik:GridTemplateColumn on the ClientSide
Feb 22, 2012 09:15 PM|LINK
i have defined the Following Template Column
<div class="tFormatCodeBlock supportThreadCodeBlock" id="highlighter_17522"> </div>
<div class="tFormatCodeBlock supportThreadCodeBlock" id="highlighter_57935">and i want to hide this Column on the clientside like this
<telerik:GridTemplateColumn UniqueName="Select" Visible='<%# CheckboxVisibleCheck(Eval("Column3").ToString)%>'> <ItemTemplate> </ItemTemplate> </telerik:GridTemplateColumn></div>How can i achieve this
roopeshreddy
All-Star
20271 Points
3346 Posts
Re: How to Hide telerik:GridTemplateColumn on the ClientSide
Feb 23, 2012 12:51 PM|LINK
Hi,
You can post this question in Telerik Forums!
Since you are using Telerik controls, they can assist you better!
http://www.telerik.com/community/forums.aspx
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
FightAsABull
Contributor
2228 Points
424 Posts
Re: How to Hide telerik:GridTemplateColumn on the ClientSide
Feb 24, 2012 05:24 AM|LINK
Hi, it seems that toString is a method, try the following codes:
<telerik:GridTemplateColumn UniqueName="Select" Visible='<%# CheckboxVisibleCheck(Eval("Column3").ToString())%>'>vuyiswamb
Member
57 Points
140 Posts
Re: How to Hide telerik:GridTemplateColumn on the ClientSide
Feb 24, 2012 07:48 AM|LINK
Good Day
i have tried your Suggestion and i still get a Error when i open it in Design
Databinding expression are only supported on objects that have a Databinding event.. Telerik.web.GridTemplate does not have a databinding event
asteranup
All-Star
30184 Points
4906 Posts
Re: How to Hide telerik:GridTemplateColumn on the ClientSide
Feb 24, 2012 10:49 AM|LINK
Hi,
Can you share us the rendered HTML for the grid? We can then help you out.
Anup Das Gupta
Mark as Answer if you feel so. Visit My Blog
srinivaskotr...
Star
11228 Points
1792 Posts
Re: How to Hide telerik:GridTemplateColumn on the ClientSide
Feb 24, 2012 02:05 PM|LINK
hi
try this
<telerik:GridTemplateColumn HeaderText="Current</br> Compa Ratio %" UniqueName="CurrentCompaRatio"
HeaderStyle-Width="90px" DataField="BudgetPercentage" Visible="true" AllowFiltering="false">
<ItemTemplate>
<asp:Label ID="lblCurrentCompaRatio" runat="server" Text='<%# Eval("CurrentCompaRatio") %> ' />%
<asp:HiddenField ID="hdnCurrentCompaRatio" runat="server" Value='<%# Eval("CurrentCompaRatio") %> ' />
</ItemTemplate>
</telerik:GridTemplateColumn>
Thanks,
Srinivas Kotra.
Allen Li - M...
Star
10411 Points
1196 Posts
Re: How to Hide telerik:GridTemplateColumn on the ClientSide
Feb 28, 2012 04:15 AM|LINK
Hi, you can add an ID attribute to this control, and then hide it with JavaScript on the client:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript"> $(function () { $('#controlID').hide(); }); </script>If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
vuyiswamb
Member
57 Points
140 Posts
Re: How to Hide telerik:GridTemplateColumn on the ClientSide
Feb 28, 2012 05:20 AM|LINK
hi
Thanks for your reply. You see the problem is that , it is template column which you cant access this way on the client side , after hassabling i realised that i can only do this on the server side on the "ItemDatabound" event"
thanks