http://www.syncfusion.com/support/forums/grid-mvc/100730..
Please find my query at above link.
I need to look into incident #84336 for my problem.
Please Assisy
Hi Sekhar,
Thank you for using Syncfusion products.
We have prepared the sample for the mentioned requirement in the forum. Please find the sample from the following link:
http://www.syncfusion.com/downloads/Support/DirectTrac/84336/Hierarchy MVC-846022335.zip
Please refer to the following code snippets:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Hierarchy(PagingParams args)
{
var data = (IList<Data>)System.Web.HttpContext.Current.Session["data"];
var result = data.GridActions<Data>() as GridHtmlActionResult<Data>;
//Querycell Event Need to hook on action [post] (like paging/sorting ,etc)
result.GridModel.QueryCellInfo = QueryAction;
return result;
}
public void QueryAction(GridTableCell<Data> cell)
{
if (cell.TableCellType == GridTableCellType.RecordFieldCell || cell.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
if (cell.Column.MappingName == "Img")
{
cell.Text = "<img style='height: 90px; width: 120px;' src='/Content/Images/" + cell.Text + ".png'>";
}
}
}
Please try this and let us know if you have any queries.
Regards,
Eswari S