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

[Solved] MVC Grid Custom Binding(Ajax) GroupBy

1 Answer 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
AR
Top achievements
Rank 1
AR asked on 02 Apr 2012, 09:02 AM
I am using telerik grid for mvc with ajax custom binding and its running ok, but the problem is when i apply the grouping it sends it ruins the grid. 

i have attached both the screen shots the code for binding looks like 


 
colums.Bound(o => o.TO).Title("To").Groupable(false).HtmlAttributes(new { style = "text-align:center" }).Width(150);
                colums.Bound(o => o.CanChange).Hidden(true);
                colums.Bound(o => o.PlanHospitalID).Hidden(true).HtmlAttributes(new { @class = "planhospital" });
                if ((Model.GeoLocationType == SalesEnum.Region.ToString()))
                {
                    colums.Bound(o => o.RMAcompanies).Groupable(false).Title("Join(RM)").ClientTemplate("<input class='rmjoin' name='RMID' type='checkbox' value='" + Model.DesignationID + "' <#=RMAcompanies? checked='checked' : '' #> <#=CanChange? '' : disabled='disabled' #> /><input type='hidden' name='PlanHospitalID' value='<#= PlanHospitalID#>'/>");
                }
                colums.Bound(o => o.SMCanChange).Hidden(true);
                if (Model.GeoLocationType == SalesEnum.Zone.ToString())
                {
                    colums.Bound(o => o.SMAcompanies).Title("Join(SM)").Groupable(false).ClientTemplate("<input class='smjoin' type='checkbox' name='SMID' value='" + Model.DesignationID + "' <#= SMAcompanies?checked='checked':'' #> <#=SMCanChange? '' : disabled='disabled' #> /><input type='hidden' name='PlanHospitalID' value='<#=PlanHospitalID#>'/>");
                }
                colums.Bound(o => o.Participants).Groupable(false);

1 Answer, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 22 Aug 2012, 08:58 PM
I have the exact same issue.   I have wasted over a day on this.   Anyone?
Tags
Grid
Asked by
AR
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Share this question
or