Hide header row in detail table of hierarchical

5 posts, 0 answers
  1. sudheer
    sudheer avatar
    109 posts
    Member since:
    Dec 2008

    Posted 19 Jul 2009 Link to this post

    Hi team,

    I have a doubt in radgrid, Is there any chance to hide header and paging row in detail table of hierarchical
    grid.

    For quick idea please view the below url, which i am expecting
    http://picasaweb.google.com/lh/photo/ef77PtMyZe6xC35UHUHAFg?feat=directlink

    But Currently using telerik i m able to get like below image(Url)
    http://picasaweb.google.com/lh/photo/-qzk-asxoAWVlajOY0f8wg?feat=directlink

    If, please send an example it's very urgent!!!!!!!!!!

    Thanks for any advance help.....

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 Jul 2009 Link to this post

    Hi Sudheer,

    You may hide the Header and disable paging for the Detail table as shown below.

    ASPX:
     
                    <DetailTables> 
                          <telerik:GridTableView runat="server" Caption="Detail"  ShowHeader="false"  AllowPaging="false"  Name="Detail"  DataSourceID="SqlDataSource1" > 
                           <Columns> 
                           <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" 
                                UniqueName="ProductName"   > 
                            </telerik:GridBoundColumn> 
                             <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn> 
                           </Columns> 
                       </telerik:GridTableView> 
                   </DetailTables> 

    Thanks
    Shinu.

  3. sudheer
    sudheer avatar
    109 posts
    Member since:
    Dec 2008

    Posted 20 Jul 2009 Link to this post

    Hi shinu,

    Thank u very much ,this is what exactly i want and looking ...........................
  4. Prashant
    Prashant avatar
    1 posts
    Member since:
    Mar 2011

    Posted 12 May 2011 Link to this post

    Is there any way to hide the header row but need to show the filter control row, because if we set ShowHeader to false it hides heder and the filter control both.
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 May 2011 Link to this post

    Hello Prasanth,

    Try the following code snippet in the ItemCreated event.
    C#:
    protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
     {
           if (e.Item is GridHeaderItem)
          {
             GridHeaderItem item = (GridHeaderItem)e.Item;
             item.Display = false;
          }
      }

    Thanks,
    Princy.
Back to Top