This is a migrated thread and some comments may be shown as answers.

Grid : Filter option

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Janaki
Top achievements
Rank 1
Janaki asked on 16 Apr 2012, 11:14 AM
Hi all,
I want the filter option disabled while editing. How can I accomplish that?
Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 16 Apr 2012, 11:19 AM
Hi Janaki,

Try the following code snippet.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
 if (e.Item is GridEditableItem && e.Item.IsInEditMode)
 {
   RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0].Visible = false;
 }
}

Thanks,
Shinu.
Tags
Grid
Asked by
Janaki
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or