Solved

telerik hide table row radgrid

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

20 Experts available now in Live!

Get 1:1 Help Now