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

GroupPanel and EnableHeaderContextMenu in MVCRadGrid sample

1 Answer 62 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 11 Jun 2009, 10:59 PM
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

__doPostBack(

'ctl00$MainContent$RadGrid1','FireCommand:ctl00$MainContent$RadGrid1$ctl00;GroupByColumn;TemplateColumn4')

 


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?

Frank

1 Answer, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 12 Jun 2009, 08:02 AM
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,
Sebastian
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.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Frank
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or