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

Dynamically Adding FilterItems to a RadGrid

4 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kenneth
Top achievements
Rank 1
Kenneth asked on 27 Jun 2008, 09:36 PM
I have a toolbar item which fires a command. The code executed is:

RadGrid1.AllowFilteringByColumn = true;

If I set this value to true declaratively - everything works. When I set it dynamically I get strange results (first time nothing happens, second time filter items are displayed - but it won't display the filter menus).

Any ideas?

4 Answers, 1 is accepted

Sort by
0
Kenneth
Top achievements
Rank 1
answered on 28 Jun 2008, 02:31 AM
Figured out a need a RadGrid1.Rebind() call after it.

However - now a new problem. Once I do I use Rebind() the filter items are realiably displayed but clicking on a filter menu doesn't bring up the menu.

Attempted to use n old fix here on the forum. <FilterMenu CssClass="FilterMenuStyle"> but it won't compile. Says that you can't declaratively create "FilterMenu".

0
Rosen
Telerik team
answered on 30 Jun 2008, 11:21 AM
Hi Kenneth,

Do you mean the menu does not appear or it is just not skinned? If the latter you can try adding the links to css file manually (more information can be found here).

As to the other question about the declarative support for the filtering menu we will add such functionality in next release of the control.

Greetings,
Rosen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kenneth
Top achievements
Rank 1
answered on 02 Jul 2008, 06:59 PM
The menu (as best as I can determine) never appears at all. And, yes under other circumstances I have seen a menu not be correctly skinned. I don't think that is the problem.
0
Rosen
Telerik team
answered on 07 Jul 2008, 04:48 AM
Hi Kenneth,

I suppose the scripts are not registered yet. You may try to register them manually. More information can be found here.
If you continue to experience difficulties please send us a small working project through a formal support ticket where the unwanted behavior can be observed. Thank you!

Best wishes,
Rosen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Kenneth
Top achievements
Rank 1
Answers by
Kenneth
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or