BK
Balaji K
Syncfusion Team
July 29, 2009 02:32 PM UTC
Hi Eric,
Thanks for evaluating Syncfusion products.
The Grid HTML content is replaced internally after the Sorting.
So only edit link not available after the sorting.
You can handle QueryCellInfoEvent in pagingsortingMapper Action method and the link has to be appended to the cell value
Please refer the following code snippet:
[C#]
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult SortingAction()
{
IEnumerable data = new StudentDataContext().Student;
ActionResult result = data.GridActions();
GridHtmlActionResult engineSource = result as GridHtmlActionResult;
engineSource.GridModel.QueryCellInfo += (sender, args) =>
{
if (args.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || args.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
/// Edit link is applied in Title column
if (args.TableCellIdentity.Column.MappingName.Equals("ID"))
{
/// Hyperlink is appended inside the cell value
args.Style.CellValue =+ args.Style.CellValue;
}
}
};
return result;
}
Please let us know if this helps.
Regards,
Balaji
ES
Eric Swann
July 29, 2009 04:38 PM UTC
Yes, this did work!
Thanks,
Eric