Solved

telerik hide table row radgrid

Posted on 2015-01-02
2
401 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now