Grid.Mvc template column to bind a list

Aug 17, 2016 at 2:04 PM
Hi,

Can anyone help me with an example to bind a list of values to a cell (column) in Grid.Mvc? Is it possible to create a template column with repeater with Grid.Mvc?

Any support will be appreciated a lot!!!

Thanks,
Suba.
Aug 17, 2016 at 9:15 PM
Got the solution !!!

columns.Add(user => user.services).Titled("service")
                       .Encoded(false)
                       .Sanitized(false)
                       .RenderValueAs(o => @<div>
                        @foreach (var service in o.services)
                        {
                            @Html.Raw(service)<br />
                        }
                    </div>);
Marked as answer by getsuba on 8/17/2016 at 1:15 PM