Solved

telerik hide table row radgrid

Posted on 2015-01-02
2
408 Views
Last Modified: 2015-01-12
how to hide a table row inside a radgrid
example below.  I am already using itemdatabound retrieving the value. (if value then Hide table row.)

<telerik:RadGrid ID="rg" runat="server" AutoGenerateColumns="false" Skin="WebBlue"
            AllowFilteringByColumn="false" AllowSorting="true" AllowMultiRowEdit="false" OnItemDataBound="RadGrid1_ItemDataBound"
            AllowPaging="true" PageSize="20" OnNeedDataSource="Requests_NeedDataSource"
            OnUpdateCommand="Requests_UpdateCommand" EnableViewState="true" Width="95%"
            ShowGroupPanel="true">
   <EditItemTemplate>
                 <itemtemplate>
<table><tr hide table row><td>value</td</tr>
<tr><td>value2</td</tr></table>

Open in new window

0
Comment
Question by:sevensnake77
2 Comments
 
LVL 7

Accepted Solution

by:
Camillia earned 500 total points
ID: 40528677
It's been a while since I've used Telerik but it's similar to ASP.Net Gridview or Listview. I think you can do something like this

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

   {

       if (e.Item is GridDataItem)

       {

           GridDataItem item = (GridDataItem)e.Item;

           if (your condition here)  

           {

               item.Display = false;  //hide the row

           }

       }

   }

Open in new window

0
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 40545589
t
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question