Solved

telerik hide table row radgrid

Posted on 2015-01-02
2
456 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:Seven price
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Seven price
ID: 40545589
t
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

717 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