GroupPanel and EnableHeaderContextMenu in MVCRadGrid sample

Thread is closed for posting
2 posts, 1 answers
  1. Frank
    Frank avatar
    15 posts
    Member since:
    Apr 2009

    Posted 11 Jun 2009 Link to this post

    I've been fiddling with the MVCRadGrid demo code, successfully adding column resizing and reordering.
    Then I tried to add grouping. I added ShowGroupPanel="True" to my telerik:RadGrid tag,
    GroupLoadMode="Client" to my MasterTableView tag, and AllowGroupExpandCollapse="True" AllowDragToGroup="True"
    to my ClientSettings tag and Groupable="true" to my telerik:GridTemplateColumn tag

    When I drag a column header to the GroupPanel I get an "Object expected" Javascript error in this code




    The doPostBack is suspicious. This is MVC, there is no such thing. What am I doing wrong?

    Also, if I set EnableHeaderContextMenu to true for the RadGrid, I get an error about type "CheckBox" must be
    placed inside a form tag. I suspect there is something in the default context menu which uses an asp:checkbox, which, again, is not compatible with MVC. Is there a way to make this work in MVC?


  2. Answer
    Sebastian avatar
    9934 posts

    Posted 12 Jun 2009 Link to this post

    Hello Frank,

    Unfortunately RadGrid features like grouping, filtering, header context menu, etc. are strictly dependant on regular postbasks and currently are not supported in ASP.NET MVC. See this topic from the documentation for more details.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top