Dynamically Adding FilterItems to a RadGrid

5 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    70 posts
    Member since:
    Feb 2008

    Posted 27 Jun 2008 Link to this post

    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?
  2. Kenneth
    Kenneth avatar
    70 posts
    Member since:
    Feb 2008

    Posted 27 Jun 2008 Link to this post

    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".

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 30 Jun 2008 Link to this post

    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
  5. Kenneth
    Kenneth avatar
    70 posts
    Member since:
    Feb 2008

    Posted 02 Jul 2008 Link to this post

    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.
  6. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 06 Jul 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017