?
Solved

telerik hide table row radgrid

Posted on 2015-01-02
2
Medium Priority
?
479 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 1500 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

762 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