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

How to hide filtermenu

4 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Preetham
Top achievements
Rank 2
Preetham asked on 25 Sep 2012, 04:21 PM
Hi Team,

we are using radgrid inside a radajaxpanel and whenever we reload the ajax panel the filtermenu is displayed just below the radgrid. I want to know why is this happening and how to avoid it or how to hide it.
Here I am attaching the screenshot of the same.
Any help is highly appreciated.

Thanks,
Preetham

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 28 Sep 2012, 07:28 AM
Hi Preetham,

Do you have AllowFilteringByColumn set to true? I am afraid it is difficult to figure out your exact scenario by the provided information so far. Could you please elaborate some more on the issue?

Generally, you could hide the filtering item using the approach below:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridFilteringItem)
    {
        e.Item.Visible = false;
    }
}

I hope this will prove helpful.

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Preetham
Top achievements
Rank 2
answered on 03 Oct 2012, 08:18 AM
Hi Eyup,

Thanks for the response, however I fixed this Issue already. :)
There was no problem with filtering item. I found the root cause of this issue and fixed it. there was some exception in the grid java script code and it was not reloading the grid, I fixed that issue in turn this got was fixed in parallel.. :) some of my code was stopping the javascript from executing. but I have another question now. how can we do a conditional reload on a RadAjaxPanel which is inside another RadAjaxPanel.

Any help will be highly appreciated.

Thanks,
Preetham.
0
Eyup
Telerik team
answered on 04 Oct 2012, 02:49 PM
Hi Preetham,

You could try the following approach:
protected void RadAjaxPanel1_AjaxSettingCreated(object sender, AjaxSettingCreatedEventArgs e)
{
    e.UpdatePanel.UpdateMode = UpdatePanelUpdateMode.Conditional;
}

I hope this helps.

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Preetham
Top achievements
Rank 2
answered on 16 Oct 2012, 02:12 PM
Hi Eyup,

Thanks for the reply, I will try it.

Preetham.
Tags
Grid
Asked by
Preetham
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Preetham
Top achievements
Rank 2
Share this question
or