hide filter row in insert mode

2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 02 Mar 2012 Link to this post

    When adding a new record how can we hide the filter in radgrid?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Mar 2012 Link to this post

    Hello,

    Try the following code.
    C#:
    protected void grid_ItemDataBound(object sender, GridItemEventArgs e)
    {
     if (e.Item is GridEditFormInsertItem && e.Item.OwnerTableView.IsItemInserted)
     {
       grid.MasterTableView.GetItems(GridItemType.FilteringItem)[0].Visible = false;
     }
    }

    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top