Hi Trinquier,
Thanks for contacting Syncfusion support.
We have analyzed your query and we suspect that you want to show the Grid column value as “val1, val2” instead of showing “val1,val2”. So, we suggest you to use the queryCellInfo event of ejGrid control to achieve your requirement.
For an example we have change the CustomerID column value in the below code example.
|
[GridFeatures.cshtml]
@(Html.EJ().Grid<object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource)
.AllowPaging() /*Paging Enabled*/
.ClientSideEvents(ce=>ce.QueryCellInfo("GridQueryCellInfo"))
.Columns(col =>
{
-----
}))
</div>
<script type="text/javascript">
function GridQueryCellInfo(args) {
if (args.column.field == "CustomerID") {
var empId = args.rowData["CustomerID"];
args.cell.innerText = empId.replace(/,/g, ', ');
}
}
</script>
|
We have prepared a sample and it can be downloadable from the below location.
Refer the help documentation.
Regards,
Thavasianand S.