Hi Craig,
Thanks for contacting Syncfusion support.
According to your requirement you need to put a logo in one of the columns in the grid. In this we suspect that you have string of the URL in dataSource of the grid. Using this URL you need to display the image in Grid. To achieve your requirement, use columnTemplate feature of ejGrid.
In columnTemplate the HTML templates can be specified in the Template property of the particular column as a string (html element) or ID of the template’s HTML element.
In this sample we have mentioned the string of the URL in the dataSource of an Grid and show the image, use JsRender syntax in the template.
Find the code example:
DataSource : [{ OrderID = 100, FirstName = "Nancy", EmployeeID = "/Content/Employees/1.png" }]
.Columns(col =>
{
col.Field("EmployeeID").HeaderText("Employee Image").Template("<img style='width: 75px; height: 70px' src={{:EmployeeID}} />").TextAlign(TextAlign.Center).Width(110).Add();
}) |
If we misunderstood your query, please get back to us.
Regards,
Prasanna Kumar N.S.V